can I build two user_on_connection

2 posts / 0 new
Last post
RandyYu
Offline
Last seen:2 years 9 months ago
加入:2015-01-28 08:49
can I build two user_on_connection

Dear dialog
I use the DSPS project,I want let slave send sensor data to host,also remain the Original function of the project,now the problem is how can use one user_on_connection() to release the two function?
感谢you

Device:
MT_dialog
Offline
Last seen:1 month 3 days ago
工作人员
加入:2015-06-08 11:34
Hi RandyYu,

Hi RandyYu,

I dont get what you mean, the user_callback_config.h (where you place all your callback functions) is different on the host and on the device side. You can add your custom app_on_connection function and replace the user_on_connection that is the standard callback with your custom callback in user_callback_config.h function. In case that you want to add some additional functionallity to the user_on_connection() you can just go ahead and add some code in the project's original function.

Thanks MT_dialog