This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2640R2F: Sending JSON via Bluetooth

Part Number: CC2640R2F

Greetings all,

I've inherited an existing design where my customer want to use JSON to transfer messages across our Bluetooth interface, then on to another device via I2C.  I see both pros and cons to this approach, the biggest pro being it allows them to use an existing JSON-based messaging system.  The con for me is that I can't figure the best way to receive these JSON strings using a GATT service.  I'm definitely new to Bluetooth, so maybe I'm missing something obvious, but what is a good way to send long strings via Bluetooth?

Joe

  • Hello Joe,

    Welcome to BLE! You can send any data over BLE - it was designed with this flexibility in mind. I suggest starting with the BLE Labs in SimpleLink Academy. You can find a link to this in our pinned CC2640R2 Getting Started FAQ here in the BLE forum. This will give you the background on how custom services are implemented so that, using some ingenuity, you an adapt your custom service to send your JSON string requirements.

    Note that there is a data service in Project Zero, this can be an additional guide.

    Best wishes