Thales' cellular IoT products business is now part of Telit Cinterion, find out more.

You are here

AT^SISW disconnect immediately | Telit Cinterion IoT Developer Community

August 2, 2023 - 12:02pm, 427 views

Hi,

I'm trying to send data to AWS via MQTT commands. If I configure the SISS prior opening the connection, the SISW could write to the MQTT broker properly. However, if I have the connection open and configure it dynamically using SISU, the following SISW will cause the connection to drop, and fail to publish.

Any suggestions?

Thanks,

Ye-Sheng

(when connection is already opened by AT^SISO)

AT^SISU=1,"publish","2:topic1:1:0:5"OK

^SISW: 1,1
at^sisw=1,5^SISW: 1,5,0

(typed in 5 characters here)

OK

^SIS: 1,0,48,"Remote peer has closed the connection"

^SISW: 1,2

(connection dropped, nothing is published to the broker)

AT^SISC=1OK
AT^SISS=1,"cmd","publish"OK
AT^SISS=1,"topic","topic1"OK
AT^SISS=1,"hcContLen",5OK
AT^SISO=1,2OK

(remove irreverent part)

^SIS: 1,0,8800,"Mqtt connect aws_broker_ip_address:8883"

^SIS: 1,0,2500,"Connection accepted on clean session."

^SISW: 1,1
AT^SISW=1,5^SISW: 1,5,0

OK

^SISW: 1,2
(published succesfully)