Open romuye123 opened 6 years ago
Well here is a doc I found yesterday, at the bottom there is info on Websockets on Amazon, maybe some helpful info there.
https://docs.aws.amazon.com/iot/latest/developerguide/protocols.html#mqtt-ws
Re the issue you are having with Websockets, try find if you have multiple versions of Mosquitto installed this was my issue in the issue you replied to, once I removed that it worked correctly. Here are some things I found just now that may help you:
http://blog.yatis.io/install-secure-robust-mosquitto-mqtt-broker-aws-ubuntu/
I would make sure you remove everything you have installed so far in attempts to avoid conflicts, how I got into the situation in my issue was from upgrading the broker.
I am looking out for step by step guide to install mosquitto broker over websockets for Amazon Linux(AMI - ec2 instance).
And i get following error:
Starting Mosquitto MQTT brokerError: Websockets support not available.
wget http://mosquitto.org/files/source/mosquitto-1.4.10.tar.gz tar xvzf mosquitto-1.4.10.tar.gz cd mosquitto-1.4.10/ sudo nano config.mk Change WITH_WEBSOCKETS to yes make sudo make install sudo service mosquitto start