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
  • Hi,

    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?

    There is a data communication limit in modem due to max size of TLS buffer of 2 KB. You can read about the limit  in the documentation. Furthermore, you can look at MQTT sample overview and this discussion. For sending larger messages, you can split your big MQTT message into smaller ones.

    3. Is the nRF9160 supports secure boot?

    Yes, you can look at features and nRF91 security features.

    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?

    I will check this internally.

    Best regards,
    Deja

Reply
  • Hi,

    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?

    There is a data communication limit in modem due to max size of TLS buffer of 2 KB. You can read about the limit  in the documentation. Furthermore, you can look at MQTT sample overview and this discussion. For sending larger messages, you can split your big MQTT message into smaller ones.

    3. Is the nRF9160 supports secure boot?

    Yes, you can look at features and nRF91 security features.

    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?

    I will check this internally.

    Best regards,
    Deja

Children
No Data
Related