2024-07-15 -
This commit is contained in:
parent
23cdacd3a0
commit
1af15011ae
2
GPS.py
2
GPS.py
@ -10,7 +10,7 @@ import time, os
|
|||||||
mqttBroker ="65.108.199.212"
|
mqttBroker ="65.108.199.212"
|
||||||
myhost = os.uname()[1]
|
myhost = os.uname()[1]
|
||||||
client = mqtt.Client(myhost)
|
client = mqtt.Client(myhost)
|
||||||
client.connect(mqttBroker, 1883)
|
# client.connect(mqttBroker, 1883)
|
||||||
|
|
||||||
ser = serial.Serial('/dev/ttyS0',115200)
|
ser = serial.Serial('/dev/ttyS0',115200)
|
||||||
ser.flushInput()
|
ser.flushInput()
|
||||||
|
Loading…
Reference in New Issue
Block a user