sim7020-write-cmqpub

gabbapeople/sim7020/sim7020-write-cmqpub

Sends "AT+CMQPUB=" write command to SIM7020 module. "AT+CMQNEW=" command sends MQTT publish packet.
sim7020-write-cmqpub
@/sim7020-write-cmqpub
Sends "AT+CMQPUB=" write command to SIM7020 module. "AT+CMQNEW=" command sends MQTT publish packet.
UARTxod/uart/uart
An UART interface to which sim7020 module is wired.
MIDnumber
MQTT ID. Can be 0, 1, 2, 3, 4.
TOPICstring
MQTT Topic. Topic of publish message. Max length is 128.
QoSnumber
Quality of Servise. QoS message can be 0, 1 or 2. Is 1 by default.
RETnumber
Retained flag. Can be 0 or 1. Is 0 by default.
DUPnumber
Duplicate flag. Can be 0 or 1. Is 0 by default.
DATAstring
Message. A message to publish into the topic. Max length is 500.
SENDpulse
Triggers writting of the AT command.
sim7020-write-cmqpub
UART
MID
TOPIC
QoS
RET
DUP
DATA
SEND
RESP
DONE
OK
ERR
TOUT
TOUTpulse
Pulses when no response is received after a timeout.
ERRpulse
Pulses when the response is received and the response string contains the "ERROR" char sequence.
OKpulse
Pulses when the response is received and the response string contains the "OK" char sequence.
DONEpulse
Pulses when the response is received.
RESPstring
A string that contains the AT command response. May contain CR and LF terminal sequences.
To use the node in your project you should have the gabbapeople/sim7020 library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.