summaryrefslogtreecommitdiff
path: root/nrfdemo/src
diff options
context:
space:
mode:
Diffstat (limited to 'nrfdemo/src')
-rw-r--r--nrfdemo/src/main.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/nrfdemo/src/main.c b/nrfdemo/src/main.c
index 81f6654..c6d6bc8 100644
--- a/nrfdemo/src/main.c
+++ b/nrfdemo/src/main.c
@@ -283,7 +283,7 @@ int main(void)
int err;
uint32_t connect_attempt = 0;
- LOG_INF("Starting MQTT sample on %s\n", CONFIG_BOARD);
+ LOG_INF("Starting MQTT sample 2 on %s\n", CONFIG_BOARD);
if (!device_is_ready(bme)) {
LOG_ERR("sensor: device not ready.\n");
@@ -353,12 +353,18 @@ int main(void)
}
/* Log the current system uptime */
- gnss_start_time = k_uptime_get();
+ //gnss_start_time = k_uptime_get();
+
+ dk_set_led_on(DK_LED1);
+ k_sleep(K_SECONDS(2));
+ dk_set_led_off(DK_LED1);
do_connect:
if (connect_attempt++ > 0) {
LOG_INF("Reconnecting in %d seconds...", 2);
+ dk_set_led_on(DK_LED1);
k_sleep(K_SECONDS(2)); // resleep
+ dk_set_led_off(DK_LED1);
}
LOG_INF("Connection to broker using mqtt_connect");