2024-07-15 -
This commit is contained in:
parent
1af15011ae
commit
b32f2bdd13
3
GPS.py
3
GPS.py
@ -31,7 +31,8 @@ def send_at(command,back,timeout):
|
|||||||
print(command + ' back:\t' + rec_buff.decode())
|
print(command + ' back:\t' + rec_buff.decode())
|
||||||
return 0
|
return 0
|
||||||
else:
|
else:
|
||||||
gps_data = rec_buff.decode()[25:-36]
|
# gps_data = rec_buff.decode()[25:-36]
|
||||||
|
gps_data = rec_buff.decode()[13:-36]
|
||||||
print(gps_data)
|
print(gps_data)
|
||||||
client.publish("iiot/"+ myhost +"/gps", gps_data)
|
client.publish("iiot/"+ myhost +"/gps", gps_data)
|
||||||
return 1
|
return 1
|
||||||
|
Loading…
Reference in New Issue
Block a user