Sending over 20 bytes via BLE

I am trying to send a json string over BLE, but, like json has more than 20 bytes, I have to send several packets of 20 bytes.

I read all the posts that I found. Some examples:

All messages contain similar information. The first message implements some functions, but:

  • What are "BLE.INITIAL_MESSAGE_PACKET" and BLE.DEFAULT_BYTES_IN_CONTINUE_PACKET "variables", where there is an declaration of each of them?
  • Where is the function "sendLastPacket (characteristic, initial_packet, CHARACTERS)"?
  • On the receptor side, how can I combine all the packets sent by the transmitter?

I did not find any information about this problem. Can anyone help me?

+4
source share

All Articles