Sending MQTT packet over uart to pass it to Telit modem

211 views
Skip to first unread message

subod...@gmail.com

unread,
Jan 16, 2017, 12:54:41 AM1/16/17
to MQTT
Hi All,
I want to send MQTT packet over UART (made available by nxp microcontroller [ARM Cortex-m4])to pass it to Telit GPRS modem.
Telit modem is having TCP/IP implemented in it.
How can I transfer this MQTT packet from UART to Modem.
My ultimate goal is to at-least publish some data to MQTT broker(AWS IoT platform) using modem.

can somebody guide me on this?


Thomas

unread,
Jan 16, 2017, 5:56:41 AM1/16/17
to MQTT
Hi,

How about starting the MQTT client of your choice. Calling the connect function and after you have read the data from the UART call the publish function with the data from the UART. 

Have you given that a try? 

Thomas

subodh mankar

unread,
Feb 10, 2017, 1:44:16 AM2/10/17
to MQTT
Hi Thomas,
I have Successfully connected to iot.eclipse.org:1883 from modem and published data there.
I used MQTTlens(chrome plugin) to monitor published data.
Normal publish work for me.
What should I do to communicate with AWS?
I am using rooCA, pvt-key and thing certificated already stored in modem.
when I connect AWS using AT#SSL...command.... after successful connection, does normal MQTT packet will be get delivered to AWS IOT console?

Regards,
Subodh

Thomas

unread,
Feb 15, 2017, 3:18:36 AM2/15/17
to MQTT
Hi Subodh,

Glad to hear that the connect to iot.eclipse.org worked for you. As for connecting to AWS I have no idea. I suggest you read up on the AWS documentation.

Good luck,

Thomas 
Reply all
Reply to author
Forward
0 new messages