System events: Turning Wifi off triggers SYSTEM_EVENT_WIFI_STATE with EVENT_VAL_WIFI_ON
System events: Turning Wifi off triggers SYSTEM_EVENT_WIFI_STATE with EVENT_VAL_WIFI_ON
BY 07 Jul 2020Native Application Development
Hi there,
I’m working on a native C service application for wearables with API version 4.0.
I found a strange behaviour of the system event EVENT_KEY_WIFI_STATE.
When I disconnect from WIFI the subscribe_wifi_state_callback is called twice.
In the first subscribe_wifi_state_callback the log prints EVENT_VAL_WIFI_ON. (This is unexpected and shouldn’t be triggered!)
In the second subscribe_wifi_state_callback the log prints EVENT_VAL_WIFI_OFF.
When I connect again the subscribe_wifi_state_callback is called once and the log prints “EVENT_VAL_WIFI_ON”.
I’m out of ideas and hope someone can help. Thanks
To reproduce the issue, I included a code snippet. You can simply copy this as e.g. service.c in the service template
System events: Turning Wifi off triggers SYSTEM_EVENT_WIFI_STATE with EVENT_VAL_WIFI_ON
Hi there,
I’m working on a native C service application for wearables with API version 4.0.
I found a strange behaviour of the system event EVENT_KEY_WIFI_STATE.
When I disconnect from WIFI the subscribe_wifi_state_callback is called twice.
In the first subscribe_wifi_state_callback the log prints EVENT_VAL_WIFI_ON. (This is unexpected and shouldn’t be triggered!)
In the second subscribe_wifi_state_callback the log prints EVENT_VAL_WIFI_OFF.
When I connect again the subscribe_wifi_state_callback is called once and the log prints “EVENT_VAL_WIFI_ON”.
I’m out of ideas and hope someone can help. Thanks
To reproduce the issue, I included a code snippet. You can simply copy this as e.g. service.c in the service template
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio