Hi,
I try to merge 2 examples on my custom board (based on nrf9160), which is mqtt_simple and locations. The goal is just publish location, which is longitude and lattitude, to an open source mqtt broker.
So there are several steps for firmware, those are :
- Init modem
- Connect to mqtt broker
- Send dummy message to mqtt broker
- Obtaining a location
- Sending location to mqtt broker
In the last part, there is a tiime that when I try to publish location again, I got error -128. After double-check the error number code, -128 means socket is disconnect. Anybody have idea about this? Thank you so much.