⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
3 posts / 0 new
Last post
Kevleo94
Offline
Last seen:2 years 8 months ago
Joined:2017-09-05 07:18
catch_rest_cb function

hi everybody. my name is Kevin. i am using ble_peripheral_example to do my project. i want to ask you
1. what is this function in user_callback_config.h for?
"static const catch_rest_event_func_t app_process_catch_rest_cb = (catch_rest_event_func_t)user_catch_rest_hndl;"

2. if i want to add some button function, where should i put it in?

Device:
STS_Dialog (not verified)
Hi Kevin,

Hi Kevin,

1)静态常量catch_rest_event_func_t app_process_catch_rest_cb = (catch_rest_event_func_t)user_catch_rest_hndl;

With this function there is the ability to handle all the events that aren't be handled by another callback function and use them as you want.

2) To add some button function it's necessary to know where you want to enable the button and what do you want to implement. For more information please check UM-B-050 and UM-B-051 from Software Development Kit at Documents Tab.

BR,

STS_Dialog.

Kevleo94
Offline
Last seen:2 years 8 months ago
Joined:2017-09-05 07:18
thanks for yout answer STS

thanks for your answer STS_Dialog. about the button, i'm thinking to put the device in wake up state from sleep mode, and also send some message over the ble.