MQTT simple example code (api based)

Hi Team,

We are using nRF9160 MQTT sample code 'mqtt_simple'. 

1. What is the maximum payload we can send in one single PUBLISH?

2. I want to send 4KB of data in single PUBLISH, is this possible? if not, what is the way to send 4KB in single PUBLISH?

3. Is the nRF9160 supports secure boot?

4. Is the nRF9160 has boot ROM? If yes, is this boot ROM available for us to add some piece of code in the boot ROM?

Regards,

Sravan Rikka

Parents Reply Children
  • Hi Dejan,

    Please respond to below queries I am waiting for your responses. Thank you.

    1. In our application we will store 5000 records and each record of size 1429, hence total bytes=5000 *      1429=7145000. Hence, we are planning to transfer 7.145MB in single MQTT publish. It is possible right?

    2. When I am copying float value into buf using sprintf I am not seeing any value in the buffer, why? whereas %d is working but %f is not working. Am I missing anything, please advice.

    float ambientTemperature = 24.5;
    len = snprintf(buf, sizeof(buf), "ambientTemperature=%f", ambientTemperature);
    printk(buf);

    Regards,

    Sravan Rikka

Related