Closed
Description
Description
I modified mbed-cloud-client-example (2.1.0) to send notifications every second and then built the application for UBLOX_EVK_ODIN_W2. I used the onboard wifi to connect to a hotspot right next to the device. Client connects fine and keeps sending notifications for some minutes, but typically before 10 minutes client loses connection and thereafter DNS resolution consistently fails. After resetting the device the same repeats.
Target: UBLOX_EVK_ODIN_W2
Toolchain: GCC_ARM 6.3.1
Tools: mbed-cli 1.8.3
Mbed OS: bf6f2c3
Steps to reproduce:
- Apply the modifications included below to the PDMC example application.
- Configure wifi ssid and password.
- Run the application.
Example application modifications:
diff --git i/configs/wifi_odin_v4.json w/configs/wifi_odin_v4.json
index 5ae9859..ad8a6a8 100644
--- i/configs/wifi_odin_v4.json
+++ w/configs/wifi_odin_v4.json
@@ -15,7 +15,7 @@
"update-client.storage-address" : "(1024*1024*64)",
"update-client.storage-size" : "(1024*1024*2)",
"update-client.storage-locations" : 1,
- "mbed-trace.enable": null,
+ "mbed-trace.enable": 1,
"nsapi.default-wifi-security" : "WPA_WPA2",
"nsapi.default-wifi-ssid" : "\"SSID\"",
"nsapi.default-wifi-password" : "\"Password\""
diff --git i/main.cpp w/main.cpp
index 204280e..b948989 100644
--- i/main.cpp
+++ w/main.cpp
@@ -132,7 +132,7 @@ void main_application(void)
// make sure the line buffering is on as non-trace builds do
// not produce enough output to fill the buffer
setlinebuf(stdout);
-#endif
+#endif
// Initialize trace-library first
if (application_init_mbed_trace() != 0) {
@@ -220,10 +220,8 @@ void main_application(void)
while (mbedClient.is_register_called()) {
static int button_count = 0;
- mcc_platform_do_wait(100);
- if (mcc_platform_button_clicked()) {
- button_res->set_value(++button_count);
- }
+ mcc_platform_do_wait(1000);
+ button_res->set_value(++button_count);
}
// Client unregistered, exit program.
example log: 2018-11-28_101125_ttyACM0.log
Issue request type
[ ] Question
[ ] Enhancement
[x] Bug