I am trying to create an application that acts as the server of a serial port connection. To do this I am creating a custom profile with two characteristics:
Tx:发送1个字节of data from the server to the client.
Rx: sends 1 byte of data from the client to the server.
I have followed tutorial 4 (creating a custom profile), but it only explains how to create characteristics that can be written to.
Clearly, Tx needs to be read from but I can't seem to find any examples of how to read from a characteristic on the website or in the example projects.