Dear dialog
1what's deffient between connection and pairing?
2.I use the DSPS project ,once every minutes times to send sensor data to host,how can configure the callback function to release this function?
Maybe my mainly problem is I am not really know which function will be called to send the sensor data(in which callback function ?or i need realse it by myself),and which function to prepare the sensor data
非常感谢!
Device:
Hi RandyYu,
1. The connection and the pairing are two different things, two device can just connect and exchange data without using any kind of security or encryption. The pairing is the procedure that the devices follow after connection in order to establish a bond (share common keys in order not to repeat the pairing procedure in upcomming connections and disconnections). You can find more detailed info in the BLE spec.
2. I dont get what you would like to do, the DSPS just sends data received by UART to the host and vice verca, there is no implementation for sending data periodically to the host. You can check the Serial Port service application user manual, it records all the available functions that the DSPS implements and provides a short implementation, please have a look at this in order to better understand the application.
Thanks MT_dialog