MQTTClient + GPS + adafruit IO
-
I'm using a pytrack with gpy. I have no problem posting data to adafruit IO, but I'm not sure when it comes to more complex data.
anyone used this combo? I'm trying to send GPS location to adafruit, and then use map block to display the location on map in adafruit IO.
testdata= {'latitude': '12', 'longitude': '34'}
client.publish(topic=AIO_GPS_FEED, msg=str(testdata))I'm really new at this but when publishing in a feed. and you give it data like I did above, is that the correct way?
-
got it working
https://learn.adafruit.com/adafruit-io/mqtt-api
https://io.adafruit.com/api/docs/mqtt.html?python