- Short range radio modules
- Positioning chips and modules
u-blox Products
- Product selector
- Previous generations
- Contact sales
Find products
- Product documentation
Documentation
Nr | Instructions | AT command | AT event |
|---|---|---|---|
1 | Configure MQTT host and port | AT+UMQCP=0,"test.mosquitto.org",1883 | |
2 | Connect to MQTT broker | AT+UMQC=0 | +UEMQC:0 |
3 | Publish Message on topic pubtopic | AT+UMQP=0,0,0,"pubtopic","HelllofromNORA-W36" | |
4 | Subscribe on topic subtopic | AT+UMQS=0,0,"subtopic" | |
5 | Post a Message to the MQTT Broker on subtopic the message should be Hello from remote device | - | - |
6 | Receive Message on subtopic | +UEMQD:0,24 | |
7 | Read String Message | AT+UMQRS=0 | +UMQRS:0,0,"subtopic",24,"Hellofromremotedevice" |
8 | Disconnect from MQTT broker | AT+UMQDC=0 |
Nr | Instructions | AT command | AT event |
|---|---|---|---|
1 | Configure MQTT host and port | AT+UMQCP=0,"test.mosquitto.org",8884 | |
2 | Write a X.509 certificate and private key using Binary data | AT+USECUB=0,"mosquitto.org.crt"{sendbinarycontentof"mosquitto.org.crt"]AT+USECUB=1,"client.crt"{sendbinarycontentof"client.crt"}AT+USECUB=2,"client.key"{sendbinarycontentof"client.key"}See Binary data for more information, note that the brackets { and } should NOT be sent, they are just here in this example. | |
3 | Setup TLS connection config | AT+UMQTLS=0,1,"mosquitto.org.crt","client.crt","client.key" | |
4 | Connect to MQTT broker | AT+UMQC=0 | +UEMQC:0 |
5 | Publish Message on topic pubtopic | AT+UMQP=0,0,0,"pubtopic","HelllofromNORA-W36" | |
6 | Subscribe on topic subtopic | AT+UMQS=0,0,"subtopic" | |
7 | Post a Message to the MQTT Broker on subtopic. The message should say Hello from remote device | - | - |
8 | Receive Message on subtopic | +UEMQD:0,24 | |
9 | Read String Message | AT+UMQRS=0 | +UMQRS:0,0,"subtopic",24,"Hellofromremotedevice" |
10 | Disconnect from MQTT broker | AT+UMQDC=0 |
Nr | Instructions | AT command | AT event |
|---|---|---|---|
1 | Configure the MQTT host, port, client-ID, username and passsword | AT+UMQCP=0,"mqtt.thingstream.io",8883,device:78e3d356-876f-483b-872f-3485853fAAAA,HMVK8C09FQP245O2BBBB,ofYyBB/L3GkPvo060J6Dv+t+mfrh0XpGMcf7CCCC | +UEMQC:0 |
2 | Write a X.509 CA Root certificate using Binary data | AT+USECUB=0,"AmazonRootCA1.pem"{sendbinarycontentof"AmazonRootCA1.pem"}See Binary data for more information, note that the brackets { and } should NOT be sent, they are just here in this example | |
3 | Set up TLS connection config. Thingstream doesn´t use a client certificate or key - only the root CA. | AT+UMQTLS=0,1,"AmazonRootCA1.pem" | |
4 | Connect to MQTT broker | AT+UMQC=0 | +UEMQC:0 |
5 | Publish a message on pubtopic | AT+UMQP=0,0,0,"pubtopic","HelllofromNORA-W36" | |
6 | Subscribe on topic subtopic | AT+UMQS=0,0,"subtopic" | |
7 | Post a message to the MQTT broker on subtopic. The message should say Hello from remote device | - | - |
8 | Receive a message on subtopic | +UEMQD:0,24 | |
9 | Read String Message | AT+UMQRS=0 | +UMQRS:0,0,"subtopic",24,"Hellofromremotedevice" |
10 | Disconnect from MQTT broker | AT+UMQDC=0 |
Nr | Instructions | AT command | AT event |
|---|---|---|---|
1 | Configure MQTT host and port | AT+UMQCP=0,"a3loryode2aaaa-ats.iot.us-east-2.amazonaws.com",8883 | |
2 | Write a X.509 certificate and private key using Binary data | AT+USECUB=0,"AmazonRootCA1.pem"{sendbinarycontentof"AmazonRootCA1.pem"}AT+USECUB=1,"aws_client.crt"{sendbinarycontentof"aws_client.crt"}AT+USECUB=2,"aws_priv_key.key"{sendbinarycontentof"aws_priv_key.key"}See Binary data for more information, note that the brackets { and } should NOT be sent, they are just here in this example | |
3 | Setup TLS connection config | AT+UMQTLS=0,1,"AmazonRootCA1.pem","aws_client.crt","aws_priv_key.key" | |
4 | Connect to MQTT broker | AT+UMQC=0 | +UEMQC:0 |
5 | Publish Message on topic pubtopic | AT+UMQP=0,0,0,"pubtopic","HelllofromNORA-W36" | |
6 | Subscribe on topic subtopic | AT+UMQS=0,0,"subtopic" | |
7 | Post a Message to the MQTT Broker on subtopic the message should be Hello from remote device | - | - |
8 | Receive Message on subtopic | +UEMQD:0,24 | |
9 | Read String Message | AT+UMQRS=0 | +UMQRS:0,0,"subtopic",24,"Hellofromremotedevice" |
10 | Disconnect from MQTT broker | AT+UMQDC=0 |
Nr | Instructions | AT command | AT event |
|---|---|---|---|
1 | Configure MQTT Host, Port, Cient and Usename | AT+UMQCP=0,"iothub-test-sw.azure-devices.net",8883,device1,iothub-test-sw.azure-devices.net/device1 | |
2 | Write a X.509 certificate and private key using Binary data | AT+USECUB=0,"AzureCa.pem"{databinarycontentof"AzureCa.pem"}AT+USECUB=1,"azure_client.crt"{databinarycontentof"azure_client.crt"}AT+USECUB=2,"azure_priv_key.key"{databinarycontentof"azure_priv_key.key"}See Binary data for more information, note that the brackets { and } should NOT be sent, they are just here in this example | |
3 | Setup TLS connection config | AT+UMQTLS=0,1,"AzureCa.pem","azure_client.crt","azure_priv_key.key" | |
4 | Connect to MQTT broker | AT+UMQC=0 | +UEMQC:0 |
5 | Publish Message on topic pubtopic | AT+UMQP=0,0,0,"pubtopic","HelllofromNORA-W36" | |
6 | Subscribe on topic subtopic | AT+UMQS=0,0,"subtopic" | |
7 | Post a Message to the MQTT Broker on subtopic the message should be Hello from remote device | - | - |
8 | Receive Message on subtopic | +UEMQD:0,24 | |
9 | Read String Message | AT+UMQRS=0 | +UMQRS:0,0,"subtopic",24,"Hellofromremotedevice" |
10 | Disconnect from MQTT broker | AT+UMQDC=0 |