I have succesfully connected my device (with HL7802) to an MQTT broker via TCP and IPV4.
I am now looking to do the same but with IPV6 (supported by the broker). I am a little confused with the configuration command and would like a little bit of guidance.
Here is the command in question:
My configuration is: at+ktcpcfg=1,0,“the actual IPV6 address”,1883,0,0,0,1
session ID = 1
mode = 0 (client)
tcp remote address = the IPV6 address
tcp_port = 1883
status = 0 (disconnected, i later plan on using at+ktcpcnx (?))
serverID = left blank (?) since it’s not in child mode
source_port = ?
data_mode = 0
URC-ENDTCP-enable = 0
af = 1 (IPV6)
The command returns:
But when i use AT+KTCPCNX=1 i get +CME ERROR: 923 (Error due to invalid state of terminate port data mode)
My configuration for the IPV4 connection was simpler: at+ktcpcfg=1,0,“the IPV4 address”,1883 so i didn’t have any issues. at+ktcpcfg? returned: +KTCPCFG: 1,0,1,0,“188.8.131.52”,1883,2249,0,0,0,0,0