Hi everyone,
I successfully tested the example of the MQTT publisher in the IOT sdk on a NRF52840 and a raspberry pi 3+. The messages end up in my mosquitto install and this is exactly what i want.
The problem or misunderstanding I have is that my NRF52 automatically disconnects from the raspberry pi after about 30 seconds. Then I have to connect from the raspberry pi again to get the connection back. Is this normal behavior or is this some error in my setup. How can I make sure that the NRF52 stays connected to the raspberry pi or do I have to make a script that connects the NRF52 periodically to get the data to the RPI.
I would like to make a sensor node out of the NRF52 so power consumption is a issue. Can I maybe initiate the connection from the NRF52 to the PI so it can sleep and then wake up make the connection get the data to the PI and go back to sleep again.
Any help would be appreciated.