MQTT Flex with SARA-R5 and SARA-R422
You can follow the instructions in the AT Commands Manual for how to use the MQTT-SN Client and security profiles.:
Some simple examples to get you up and running quickly are listed below.
Configure the module
Configure the DTLS security profile
The following commands set up the DTLS security profile which the MQTT-SN client will make use of.
Set the profile ID to use. This examples uses profile 0:
Set the certificate validation level:
Set profile 0 to accept TLS v1.2:
Set the cipher suite:
Set the client key and certificate to be used (as created in the previous step):
Configure the MQTT-SN client to use your MQTT Flex thing with the security profile
Set the client ID (copy from Thingstream portal):
Configure the MQTT-SN gateway endpoint:
Set the client to use the required DTLS profile:
Using the MQTT-SN Client
Once you have completed the MQTT-SN client configuration, you will need to set up the packet switched data configuration to use the APN specified by your MNO. You can then proceed with the MQTT-SN commands e.g.
In this section
Still need help?
If you need more help or have any questions, please send an email to firstname.lastname@example.org.