2024-07-15 -

This commit is contained in:
Adolfo Delorenzo 2024-07-15 20:10:18 -06:00
parent 1af15011ae
commit b32f2bdd13

3
GPS.py
View File

@ -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