-->
Page 1 of 3

MQTT Client via websockets

PostPosted: Tue Feb 21, 2017 5:17 am
by gaara
Hi,

We're trying to use MQTT over websockets, however, it doesn't seem that the Sming MQTTClient supports connections over websockets. Any idea if there's anything else available?

Could we use the WebSocketClient to send MQTT messages? Is there any reference of how to format those messages to subscribe etc?

Regards,

Alex

Re: MQTT Client via websockets

PostPosted: Tue Feb 21, 2017 5:51 am
by AcmeUK
Hi
Peter Scargill has done a lot of work on using MQTT with Node Red and websockets. See this:-
http://tech.scargill.net/a-node-red-websockets-web-page/

This is page one of a three page blog, be sure to read the other pages.

Re: MQTT Client via websockets

PostPosted: Wed Feb 22, 2017 7:47 am
by gaara
It's not really MQTTWebSocket client though. It's a web socket client sending messages to a middle man between the ESP and the MQ Broker.

Since MQTT brokers support web sockets, there's no reason for the ESP not to have an MQTTWebSocket client. It's just a matter of someone developing one, or porting one.

Does anyone have a reference of how to construct MQTT Web Socket messages (subscribe, publish, etc)?

Regards,

Alex

Re: MQTT Client via websockets

PostPosted: Fri Mar 17, 2017 8:51 am
by ciberius
Hi Alex, we are facing the same problem...have you found some information that you can share?