diff options
| author | Michal Hanus <mikehanus@protonmail.com> | 2025-06-01 09:58:03 +0200 |
|---|---|---|
| committer | Michal Hanus <mikehanus@protonmail.com> | 2025-06-01 09:58:03 +0200 |
| commit | bde23520eedae819e5e14c39b47e4611fdab11a9 (patch) | |
| tree | 17748089156c53f4477252da23120230dd2eeb78 /nrfdemo/src/main.c | |
| parent | 8c735902fc372402c7c27d03fc8f77532fef542e (diff) | |
sobota
Diffstat (limited to 'nrfdemo/src/main.c')
| -rw-r--r-- | nrfdemo/src/main.c | 10 |
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"); |
