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
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.
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