MQTT implementation on top of OpenThread stack

236 views
Skip to first unread message

Shahabuddin Mohammed

unread,
Nov 18, 2016, 5:46:13 AM11/18/16
to openthread-users
Hi,

I need some advice on implementation of MQTT on Thread devices.
I am planning to use MQTT on top of LWIP TCP stack over OT stack.

Question: How to pass TCP packets to OT? Should I bypass the UDP path by accessing Ip6 send/receive:

Ip6::SendDatagram
Ip6::HandleDatagram

Thanks,
Shahab



Jonathan Hui

unread,
Dec 5, 2016, 1:12:17 PM12/5/16
to openthread-users
Hi Shahab,

OpenThread does not currently provide a TCP API.  If you have your own TCP implementation, you could try using the following IPv6 APIs to send/receive raw IPv6 datagrams:

ThreadError otSendIp6Datagram(otInstance *aInstance, otMessage aMessage);

void otSetReceiveIp6DatagramCallback(otInstance *aInstance, otReceiveIp6DatagramCallback aCallback,
                                     
void *aCallbackContext);

--
Jonathan Hui

Shahabuddin Mohammed

unread,
Dec 6, 2016, 12:40:23 AM12/6/16
to openthread-users
Hi Jonathan,

Thanks for the suggestion.

Regards,
Shahab
Reply all
Reply to author
Forward
0 new messages