Does ke_state_get function have delay?

3 posts / 0 new
Last post
caiziee
Offline
Last seen:2 years 5 months ago
加入:2016-07-29 10:01
Does ke_state_get function have delay?

Hi, Dialog
I am using DA14583. Now I found that when I checked the ble state using 'ke_state_get', the returned state is not the real one. I mean, for example, the ble is connected to my mobile phone, and has received a message, but after that I checked the ble state, it is not connected. Hence I assume there is a delay in the state updating?

Thanks a lot.

Device:
MT_dialog
Offline
Last seen:2 months 3 weeks ago
工作人员
加入:2015-06-08 34
Hi caiziee,

Hi caiziee,

The state of the device is updated by the SDK with the ke_state_set(), for example regarding the connection procedure that you ve mentioned, in the gapc_connection_req_ind_handler() as soon as the handler occurs and the ke_state_set(TASK_APP, APP_CONNECTED) the device should leave the APP_CONNECTABLE state and turn the the APP_CONNECTED state. Also there are additional states besides the connected state when you are connected, if for example you started an update parameters procedure then the state of the application will change from APP_CONNECTED to APP_PARAM_UPD and then it switches back to the APP_CONNECTED (you will be able to see that in the gapc_cmp_evt_handler() in the GAPC_UPDATE_PARAMS case).

Thanks MT_dialog

caiziee
Offline
Last seen:2 years 5 months ago
加入:2016-07-29 10:01
Thanks, Dialog.

Thanks, Dialog.