User Manual

Table Of Contents
SARA-R4 series-AT commands manual
UBX-17003787 - R16
25MQTT
Page 309 of 401
Parameter Type Description
<pub_msg_length> Number Specifies the number of octets in <pub_bin_message>, the maximum length is 1024
octects.
<pub_bin_message> String Data bytes to be published.
25.6.5Notes
The topic name should not include any wildcards for the publish commands.
The topic filter could include the '+' wildcard to substitute for a single topic folder or the '#' wildcard to
substitute for any number of topic folders. The '#' wildcard must be the last character in a topic filter.
SARA-R410M-63B / SARA-R410M-73B / SARA-R410M-83B
The <memory_full> parameter is not supported.
SARA-R410M-02B / SARA-R410M-52B / SARA-R412M / SARA-N4
Login to the MQTT server will have two responses, an immediate "+UMQTTC: 1,1" response that indicates
that the module has sent the MQTT login request to the MQTT server. The MQTT server's login response
will happen asynchronously when the MQTT server has finished processing the MQTT login request and
decided whether or not to accept it.
Subscription to a given topic filter will have two responses, an immediate "+UMQTTC: 4,1" response
that indicates that the module has sent the MQTT subscription request to the MQTT server. The
MQTT server's subscription response will happen asynchronously when the MQTT server has finished
processing the MQTT subscription request and decided whether or not to accept it.
25.7MQTT error +UMQTTER
+UMQTTER
SARA-R410M-02B SARA-R410M-52B SARA-R410M-63B SARA-R410M-73B SARA-R410M-83B
SARA-R412M
Modules
SARA-N4
Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributes
partial No No No - +CME Error
MQTT Error
25.7.1SARA-R410M-02B / SARA-R410M-52B / SARA-R412M / SARA-N4
Description
Retrieves the error code and module (plus possible supplemental information) of the last MQTT operation that
resulted in an error response.
25.7.2SARA-R410M-63B / SARA-R410M-73B / SARA-R410M-83B Description
Retrieves the error class and code of the last MQTT operation that provided an error.
25.7.3Syntax
Type Syntax Response Example
Action AT+UMQTTER +UMQTTER: <error_code1>,<error_
code2>
OK
AT+UMQTTER
+UMQTTER: 1,1
OK
25.7.4Defined values
Parameter Type Description
<error_code1> Number
SARA-R410M-02B / SARA-R410M-52B / SARA-R412M / SARA-N4 - Value of error
code. Values are listed in MQTT error codes.
SARA-R410M-63B / SARA-R410M-73B / SARA-R410M-83B - Value of error class.
Values are listed in Internet suite error classes.
<error_code2> Number
SARA-R410M-02B / SARA-R410M-52B / SARA-R412M / SARA-N4 - Value of
supplemental error code. The values are listed in MQTT supplimental error codes.