This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Get GPS and send it to MQTT Broker

Hi,

I'm quiet new with nrf9160.


I try to mix the two sample GPS and MQTT to send my position each time it change to a MQTT broker.

I have create two threads, one for the MQTT and the second for get the GPS position.

How to setup the modem to use MQTT (LTE) and GPS.
If I use the GPS setup from the example, I get each time an error (-8) when I send the AT%XSYSTEMMODE command.

Exist it some example of this application?

Thank you

Thomas

Related