User Manual

Table Of Contents
SARA-R4/N4 series-AT Commands Manual
UBX-17003787 - R11
24MQTT
Page 256 of 308
Parameter Type Description
2: the client identifier is correct UTF-8 but not allowed by the Server
3: the network connection has been made but the MQTT service is unavailable
4: the data in the user name or password is malformed
5: the client is not authorized to connect
6-255: reserved for future use
24.5.4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.
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.
SARA-R4 / SARA-N4
<op_code>= 3 and 8 are not supported
24.6MQTT error +UMQTTER
+UMQTTER
SARA-R410M-02B SARA-R410M-52B SARA-R412MModules
SARA-N4
Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributes
full No No No - -
24.6.1Description
Retrieves the error code and module (plus possible supplemental information) of the last MQTT operation that
resulted in an error response.
24.6.2Syntax
Type Syntax Response Example
Set AT+UMQTTER +UMQTTER: <error_code>,<suppl_
error_code>
OK
AT+UMQTTER
+UMQTTER: 1,1
OK
24.6.3Defined values
Parameter Type Description
<error_code> Number Value of error code. Values are listed in Appendix A.7.
<suppl_error_code> Number Value of supplemental error code. The values are listed in Appendix A.7.1.