how the callback functions be called and the parameter transfered?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
waer_4412851
Level 1
Level 1

Hi,

The WICED SDK of 20735B1, I find functions for example, wiced_bt_gatt_status_t hello_sensor_gatts_callback( wiced_bt_gatt_evt_t event, wiced_bt_gatt_event_data_t *p_data),it was called by wiced_bt_gatt_register(hello_sensor_gatts_callback); But I haven't find where the value of event and p_data be set. 

Thanks

  Erxi

0 Likes
1 Solution
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

The event and data is set by the low level stack and customer can't get access to it.

View solution in original post

0 Likes
5 Replies
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

The event and data is set by the low level stack and customer can't get access to it.

0 Likes

Got it.

Thanks!

0 Likes

If I want to create a new thread(or callback),how to do?

0 Likes

Can you show me a demo?

Thanks.

0 Likes

Usually we use a timer to startup a callback. You can find that in the hello_sensor demo.

0 Likes