XDK WLAN interruption
Risposta
24/09/19 12.07

Hi all 
We have the following problem:

Application: AwsSendDataOverMQTT
XDK-Workbench: 3.6

We have implemented in the software that the XDK restarts in the event of a connection interruption (WLAN). 
The problem is that the sensor can no longer connect to the WLAN after the reboot. The XDK then hangs in this state.
The problem can be solved by restarting a WLAN router. Where could the problem be? 

 

The other question is, what does the following error mean? 

 INFO | XDK DEVICE 1: Error in XDK110 Application package.
 INFO | XDK DEVICE 1: 	Package ID: 153
 INFO | XDK DEVICE 1: 	Module ID: 50
 INFO | XDK DEVICE 1: 	Severity code: 2
 INFO | XDK DEVICE 1: 	Error code: 147

 

Thank you for your support 

Best regards

 

Silvan 

0 (0 Voti)
RE: XDK WLAN interruption
Risposta
25/09/19 8.23 come risposta a Silvan Joos.

Hello,

What do you mean by connection interruption ?

Do you disconnect from the WiFi network through software and do soft reboot ?

In that case, please also consider closing the mqtt connection by calling MQTT_AGENT_Disconnect() to close the mqtt session.

0 (0 Voti)
RE: XDK WLAN interruption
Risposta
25/09/19 11.15 come risposta a Padmapriya G.

Hello,

No, it's about a connection interruption on the WLAN side. The WLAN connection is unfortunately not very stable. 

0 (0 Voti)
RE: XDK WLAN interruption
Risposta
26/09/19 4.53 come risposta a Silvan Joos.

Hello,

When you receive WLAN network disconnection event, please try to close the connection safely.

Since the disconnection is initiated from the server, it is good to close the WLAN connection session in the client also.

Hence before rebooting,

  1. WLAN_Disable() to close the WLAN session
  2. MQTT_AGENT_Disconnect() to close the mqtt session.
0 (0 Voti)