Example project to publish messages to a MQTT-SN broker using the u-blox SARA-N200 NB-IoT modem
Dependencies: MQTTSNPacket X-NUCLEO-SARA-N200
Diff: main.cpp
- Revision:
- 6:16be6bf59d30
- Parent:
- 5:749a8fb7f27e
- Child:
- 7:ab32680de141
diff -r 749a8fb7f27e -r 16be6bf59d30 main.cpp --- a/main.cpp Mon Aug 20 15:43:31 2018 +0000 +++ b/main.cpp Tue Aug 21 16:37:21 2018 +0200 @@ -135,7 +135,7 @@ sprintf(publishMessage, "Button pressed"); } - if(pub_count++ > 50) + if(pub_count++ > 100) { mMQTTstate = MQTT_CLIENT_PUBLISH;