Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] mqtt<->websocket

No, i'm using default config. Just websockets on 9001 and http_dir added.

2016-02-19 13:30 GMT+03:00 Manuel Domínguez Dorado <manolodd@xxxxxxxxx>:

Are you using ACLs? Perhaps is a matter of permissions to publish/subscribe on a given topic

El 19/2/2016 11:28, "Артем Пастухов" <artem.pastukhov@xxxxxxxxx> escribió:
I'm trying to run http://jpmens.net/2014/07/03/the-mosquitto-mqtt-broker-gets-websockets-support/
I'm getting " Subscribed to meter/#  status Connected to 192.168.100.198:9001/mqtt", but no messages.

My MCU is sending {"status":0,"pin":1,"date":"Fri, Feb 19 2016 13:18:02 GMT+0300"} to meter/10643014/1/events and i see it with mosquitto_sub -t meter/#


2016-02-19 13:05 GMT+03:00 Nicholas O'Leary <nick.oleary@xxxxxxxxx>:
First you need an MQTT client that supports connecting over websockets. 

Eclipse Paho has a _javascript_ client that does just that - http://www.eclipse.org/paho/clients/js/

Once you have that connected, then it behaves like any other mqtt client - the fact it is connected using websockets doesn't matter. You'll be able to publish and subscribe to topics and it won't matter how other clients are connected to the broker.

Nick




On 19 February 2016 at 09:49, Артем Пастухов <artem.pastukhov@xxxxxxxxx> wrote:
Hi all.
Is there any howto about passing messages between mqtt and websocket on same mosquitto server?

_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev


_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev


_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev

_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev


Back to the top