Sending configuration without using JSON

Hello,

I'm designing a device based on nRF52840 SoC that receives a configuration (set of 50 parameters) from an app which downloads the configuration in JSON format from a remote server via API call. Surely the app cannot send the configuration as JSON via BLE, at the same time I don't want to extract in the app every single parameter from the JSON and then send a single parameter at a time to the device via BLE.

Does anyone have any advice on how to optimize the configuration?

Thanks for the help.

  • Hi,

    It would technically be possible to send the JSON configuration file over BLE, for instance using Nordic UART Service. This will require you to parse the JSON file on the device and extract the configuration. A quick Google search reveals that there are multiple alternatives available of small JSON parser libraries intended for use with embedded devices.

    If you do not want to send the JSON file, you either need to send each configuration separately, or create your own customer configuration format that can be parsed by the receiving side of the BLE link.

    Best regards,
    Jørgen

Related