A
@Gijs @robert-hh I got the Pytrck 2.0 . I test with the standby, sensor_power Functions. also with
def gps_state(self, gps=True):
# enable or disable back-up power to the GPS receiver
if gps:
self.set_bits_in_memory(PORTC_ADDR, 1 << 7)
else:
self.mask_bits_in_memory(PORTC_ADDR, ~(1 << 7))
It disable and then automatically restart the receiver.
Sending data: {"lon_d": xxxxx, "lat_d": xxxxx, "battery": 4.766989, "temperature": 0, "humidity": 0}
CoAP POST message ID: 27515
ID: 26235
Code: 69
Type: 2
Token: b''
ReceivedMsg: b'test'
b'test'
test
GPS OFF
CoAP GET message ID: 27771
Caugh exception: I2C bus error
Sending data: {"lon_d": null, "lat_d": null, "battery": 4.756954, "temperature": 0, "humidity": 0}
CoAP POST message ID: 28027
CoAP GET message ID: 28283
Sending data: {"lon_d": 10.37374, "lat_d": xxxx, "battery": xxxxx, "temperature": 0, "humidity": 0}
CoAP POST message ID: 28539
Is there a way to disable it and it stays disabled until I enable it again.