sim7020-write-cmqcon

gabbapeople/sim7020/sim7020-write-cmqcon

Sends "AT+CMQCON=" write command to the SIM7020 module. "AT+CMQCON=" command sends MQTT connection packet.
sim7020-write-cmqcon
@/sim7020-write-cmqcon
Sends "AT+CMQCON=" write command to the SIM7020 module. "AT+CMQCON=" command sends MQTT connection packet.
UARTxod/uart/uart
An UART interface to which sim7020 module is wired.
MIDnumber
MQTT ID. Can be 0, 1, 2, 3, 4.
VERnumber
MQTT Version. Can be 3 or 4.
CIDstring
Client ID. ID should be unique. Max length is 32.
KAnumber
Kepp alive interval in seconds. Can be from 0 to 64800. Don't suggest to set it to a small value because server may disconnect the device for some reason.
CSnumber
Cleansession. Can be 0 or 1. Is 0 by default.
WFnumber
Will flag. Can be 0 or 1. Is 0 by default.
USERstring
Username. Max length is 32.
PASSstring
Password. Max length is 50.
SENDpulse
Triggers writting of the AT command.
sim7020-write-cmqcon
UART
MID
VER
CID
KA
CS
WF
USER
PASS
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.