EasyManua.ls Logo

Ublox SARA-R4 Series User Manual

Ublox SARA-R4 Series
307 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #249 background imageLoading...
Page #249 background image
SARA-R4/N4 series-AT Commands Manual
UBX-17003787 - R09
24MQTT
Page 249 of 307
Parameter Type Description
<client_id> String Uniquely identifies this client connection to a given MQTT message broker. If a new
connection request is received with the same unique client ID as a current connection,
the MQTT message broker disconnects the previous connection and responds to
(and uses the parameters from) the new connection request. If this parameter is not
defined, the module will attempt to create a unique client ID, based on the module's
IMEI value.
<local_port> Number MQTT client TCP port; if the MQTT client port number is not specified, the port
number defaults to the IANA assigned port of 1883 for non-TLS MQTT and 8883 for
TLS MQTT.
<server_name> String Indicates the remote server name. The default value is an empty string.
<IP_address> String Indicates the remote server IP address. The default value is an empty string.
<username> String User name for the MQTT login procedure. The maximum length is 30 characters. The
default value is an empty string.
<password> String Password for the FTP login procedure. The maximum length is 30 characters. The
default value is an empty string.
<timeout> Number Indicates the inactivity timeout expressed in seconds. According to the MQTT
specification, an MQTT server must disconnect a client if it receives nothing from
the client within 1.5x the inactivity timeout. An inactivity timeout value of 0 indicates
no timeout. The default value is 0 s. The maximum value corresponds to 18 hours, 12
minutes and 15 seconds.
<server_port> Number Remote MQTT server listening port; it must be a valid port value. The range goes
from 1 to 65535; the default value is 1883 for non-TLS MQTT and 8883 for TLS
MQTT.
<MQTT_secure> Number Enables / disables the secure option of MQTT service:
0 (default value): no TLS encryption
1: enable the MQTT TLS encryption
<USECMNG_profile> Number USECMNG profile (number). Defines the USECMNG profile which specifies the SSL/
TLS properties to be used for the SSL/TLS connection. The range goes from 0 to 4. If
no profile is set a default USECMNG profile is used (see USECMNG section).
<clean_session> Number Clean Session value. Allowed values:
0: indicates that the client subscription and delivered messages received by the
client should be remembered across disconnects by both the MQTT client and the
MQTT server
1: indicates that disconnects clean all session state information
<param1> Number /
String
Type and supported content depend on the related <op_code> parameter (details are
given above). If <param1> is not specified the value of the corresponding parameter
<op_code> is reset to the default value.
<param2> Number /
String
Type and supported content depend on the related <op_code> parameter (details are
given above). If <param2> is not specified the value of the corresponding parameter
<op_code> is reset to the default value.
<result> Number
0: failure
1: success
24.1.4Notes
The information text response to the read command does not display the password.
The MQTT server IP address and the MQTT server name are mutually exclusive. If value for <op_code>=
2 is specified by the user, then the value for <op_code>=3 is reset or vice versa.
Some network operators do not allow Secure MQTT. In this case the +UMQTTC=1 command (MQTT login)
will return a failure response by means of the +UUMQTTC URC after an TLS timeout of 30 s.
SARA-R4 / SARA-N4
The information text response to the read command provides a continuation string, (more), if more
information remains to be displayed. By issuing again the read command, the MQTT will attempt to
continue the previous display attempt.
For individual MQTT parameter fields, especially the string fields (double-quote delimited), the
continuation symbol + indicates whether the current display is a continuation from a previous display or
whether the current display has more information to be displayed.
If the continuation symbol precedes the first double-quote, e.g., Topic: +"is continuing from previous
display", then this MQTT parameter field continues from a previous display command. If the continuation
symbol trails the last double-quote, e.g., Topic: "This message won't fit within the limita"+, then it

Table of Contents

Other manuals for Ublox SARA-R4 Series

Question and Answer IconNeed help?

Do you have a question about the Ublox SARA-R4 Series and is the answer not in the manual?

Ublox SARA-R4 Series Specifications

General IconGeneral
Operating Temperature-40°C to +85°C
CategoryCellular Module
TechnologyLTE Cat M1, LTE Cat NB1
Frequency BandsB1, B2, B3, B4, B5, B8, B12, B13, B18, B19, B20, B25, B26, B28, B39
InterfacesUART, USB, I2C, GPIO
ProtocolsTCP/IP, UDP, HTTP, HTTPS, MQTT, LWM2M
SecurityTLS/SSL, DTLS, Secure Boot
CertificationsGCF, PTCRB, CE, FCC, IC

Summary

AT command settings

General operation

2.1 Start up and initialization

Describes the cellular device boot process, SIM card initialization, and potential operational restrictions.

General

Mobile equipment control and status

5.2 Set module functionality +CFUN

Selects the level of functionality for the module, including reset options.

Call control

6.1 Dial command D

Initiates calls (voice, data, fax) and controls supplementary services using dialling strings.

Network service

7.2 Signal quality +CSQ

Returns the Received Signal Strength Indication (RSSI) and signal quality.

7.4 Operator selection +COPS

Forces an attempt to select and register with a network operator, supporting manual or automatic selection.

Security

8.1 Enter PIN +CPIN

Enters the PIN code to unlock the SIM card and manage password states.

Short Messages Service

9.11 Send message +CMGS

Sends a message from DTE to the network (SMS-SUBMIT) and returns a message reference.

V24 control and V25ter

SIM management

11.1 Generic SIM access +CSIM

Allows direct control of the SIM by transmitting commands via MT.

Packet switched data services

13.1 PDP contexts and parameter definition

Defines primary and secondary PDP contexts and their activation procedures.

13.3 PDP context definition +CGDCONT

Defines connection parameters for a PDP context, identified by a local context ID.

System features

14.1 Firmware installation +UFWINSTALL

Triggers the firmware installation procedure, causing a system reset.

14.7 Power Saving Mode Setting +CPSMS

Enables and configures the Power Saving Mode (PSM) parameters on the UE.

GPIO

15.2 GPIO select configuration command +UGPIOC

Configures GPIO pins as input, output, or for custom functions.

Internet protocol transport layer

18.3 Create Socket +USOCR

Creates a socket and associates it with a specified protocol (TCP or UDP).

18.4 SSL/TLS mode configuration on TCP socket +USOSEC

Enables or disables SSL/TLS connection on a TCP socket using USECMNG profiles.

SSL/TLS

19.2 SSL/TLS certificates and private keys manager +USECMNG

Manages X.509 certificates and private keys: import, list, retrieve, and remove.

19.3 SSL/TLS security layer profile manager +USECPRF

Manages security profiles for SSL/TLS connection configuration properties.

FTP

HTTP

GNSS

22.2 GNSS power management +UGPS

Switches the GNSS receiver on/off and configures aiding types for faster TTFF.

MQTT

24.1 MQTT profile configuration +UMQTT

Configures or reads the parameters of an MQTT client profile.

Appendix: Error result codes

A.1 Mobile termination error result codes +CME ERROR

Lists numeric error codes and their descriptions for mobile termination errors.

Related product manuals