Hello all,
I have configured my CC3200 as station and connected to an AP.
I want to monitor whether my CC3200 remains connected to the AP.
I am monitoring the connection status at some intervals of time (say 60 seconds).
I have referred to the thread by Srdjan Stankovic1 , and continuing it further.
As suggested in the thread, i used the following lines of code to get the connection status:-
long statusWlan;
unsigned char pConfigOpt;
unsigned char pConfigLen;
pConfigOpt = SL_EVENT_CLASS_WLAN;
sl_DevGet(SL_DEVICE_STATUS,&pConfigOpt,&pConfigLen,(unsigned char *)(&statusWlan));
Here, the statusWlan always returns the value 0x80000000 which corresponds to
#define STATUS_WLAN_STA_CONNECTED (0x80000000L)
Now, since i am using pConfigOpt = SL_EVENT_CLASS_WLAN; the returned events will be from:-
/****************** WLAN CLASS status ****************/
#define EVENT_DROPPED_WLAN_WLANASYNCONNECTEDRESPONSE (0x00000001L)
#define EVENT_DROPPED_WLAN_WLANASYNCDISCONNECTEDRESPONSE (0x00000002L)
#define EVENT_DROPPED_WLAN_STA_CONNECTED (0x00000004L)
#define EVENT_DROPPED_WLAN_STA_DISCONNECTED (0x00000008L)
#define STATUS_WLAN_STA_CONNECTED (0x80000000L)
My question is, if my device disconnects from the AP, which event would i get ??
Is there any other way of monitoring the connection status between station(CC3200) and the AP ??
Kindly reply.
Warm regards,
Abhishek.