diff --git a/GPS.py b/GPS.py index a5dcb20..02c212a 100755 --- a/GPS.py +++ b/GPS.py @@ -31,7 +31,8 @@ def send_at(command,back,timeout): print(command + ' back:\t' + rec_buff.decode()) return 0 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) client.publish("iiot/"+ myhost +"/gps", gps_data) return 1