Skip to content

Commit 5d7a8b1

Browse files
committed
Add some more loggin to sandbox example
1 parent 8a2ff7a commit 5d7a8b1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/examples/sandbox/sandbox.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
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:

0 commit comments

Comments
 (0)