File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1515#include < mcp9808.h>
1616#include < mqtt_client.h>
1717
18- #define HEARTBEAT_INTERVAL_MS 60000
19- #define STREAM_DURATION 10000
18+ #define HEARTBEAT_INTERVAL_MS 10000
2019
2120// AWS defines which topic you are allowed to subscribe and publish too. This is
2221// defined by the policy The default policy with the Microchip IoT Provisioning
@@ -251,6 +250,7 @@ void setup() {
251250 sprintf (mqtt_sub_topic, MQTT_SUB_TOPIC_FMT, thing_name);
252251 sprintf (mqtt_pub_topic, MQTT_PUB_TOPIC_FMT, thing_name);
253252
253+ Log.info (" Connecting to LTE network..." );
254254 connectLTE ();
255255}
256256
@@ -260,6 +260,7 @@ void loop() {
260260 case NOT_CONNECTED:
261261 state = CONNECTED_TO_NETWORK;
262262 Log.info (" Connected to LTE network" );
263+ Log.info (" Connecting to MQTT broker..." );
263264 connectMqtt ();
264265 break ;
265266 default :
You can’t perform that action at this time.
0 commit comments