Skip to main content
10 votes
Accepted

How to enable WebSockets on Mosquitto running on Windows?

A few things: The mosquittto_pub and mosquitto_sub commands do not support WebSockets at all. When you run mosquitto from the command line you have to explicitly point to the config file with the -c ...
hardillb's user avatar
  • 12.6k
9 votes
Accepted

Should I use Mosquitto's web sockets or connect clients directly?

The question here appears to be "should I use MQTT over TCP, or use MQTT over websockets (which also goes over TCP)?" In other words, is "encapsulating MQTT in the websockets protocol a good idea?" ...
ralight's user avatar
  • 880
7 votes

Should I use Mosquitto's web sockets or connect clients directly?

When you are communicating only inside your network (intranet), using pure TCP will be fine. But if you have to connect to another server, problems will arise. Because most of the modern servers do ...
ThisaruG's user avatar
  • 824
6 votes
Accepted

How to send continuous data from a few ESP8266 to a webserver?

MQTT is probably the right answer. Each ESP can publish to the broker with a topic structure something like: client1/sensor1 client1/sensor2 You can then use MQTT over Websockets to subscribe to ...
hardillb's user avatar
  • 12.6k
6 votes

Should I use Mosquitto's web sockets or connect clients directly?

tl;dr - always prefer free libraries to coding it your self (unless you have extreme requirements) Should I use Mosquitto's web sockets or connect clients directly? How long is a piece of string? ...
Mawg's user avatar
  • 3,110
5 votes
Accepted

Network type for streaming from RPi to several ESP8266 modules

MQTT should be more than fast enough for your architecture, given a decent WiFi network. I run about 30 sensors (ESP8266, Feather MO, Arduino Uno, etc.) all using MQTT back to a Mosquitto Broker ...
JD Allen's user avatar
  • 618
5 votes

How to enable WebSockets on Mosquitto running on Windows?

As @hardlib said, you have to compile mosquitto from sources. It took some trial and error for us to get it working on windows, so here some summary in case it helps somebody. Please don't hesitate to ...
bgusach's user avatar
  • 321
4 votes
Accepted

How to connect several sensor boxes (ESP32) via WIFI/webserver/...?

I'd suggest using MQTT to configure the ESP32's as clients to publish/subscribe. You can use a Raspberry Pi (A 0W will work, but a 3 or 4 is better) as the broker, and look at your data (or control ...
BobT's user avatar
  • 156
4 votes
Accepted

What is the technical difference between MQTT and MQTT over web socket that allows the later to be preferred choice by web browser apps?

Nothing, as I stated in the answer on Stack Overflow they are byte for byte exactly the same protocol, it's just the transport layer which changes from raw TCP to Websockets. The difference is that ...
hardillb's user avatar
  • 12.6k
4 votes

Connect Webpage to AWS IoT to Publish Messages

AWS IoT supports MQTT over Websockets which can be used from with in the client side of a web application. You can follow the instructions here for details of how to do the required authentication.
hardillb's user avatar
  • 12.6k
3 votes

How to enable WebSockets on Mosquitto running on Windows?

Starting from 1.5.1 the windows package support websocket, see changelog https://mosquitto.org/blog/ You have just to edit mosquitto.conf file, specify to use the websocket protocol by adding "...
Decagrog's user avatar
2 votes

How to enable WebSockets on Mosquitto running on Windows?

I found a compiled version of Mosquitto with WebSockets built for Windows on GitHub which may be of use if you don't want to build the code yourself. While it is documented in Korean, it also ...
cbit's user avatar
  • 21
2 votes

How to connect several sensor boxes (ESP32) via WIFI/webserver/...?

In a distributed system like this, the key questions are where the 'intelligence' for the system will reside, how it will communicate with the peripherals, and what interface you need to configure &...
jayben's user avatar
  • 201
2 votes

Pushing Processed data from RFID + Sensors to a Platform

Congratulations on writing a research paper on it. This can be done with streaming platforms such as kafka or AWS KDA (kinesis data analytics). There are clauses in the query language in KDA (and also ...
kalyanswaroop's user avatar
2 votes
Accepted

Pushing Processed data from RFID + Sensors to a Platform

If someone needs an answer / solution for this query, I created a landing page of repositories that provides a complete End-To-End solution of a prototype of the application. Right from Arduino Sketch ...
Shan-Desai's user avatar
  • 1,558
1 vote

Real-time web-app for IOT devices

If you need to scale this to thousands of devices, I would not have the bottleneck at the cloud, of trying to prevent a second command. Instead, I'd let the device have the concept of a "session&...
kalyanswaroop's user avatar
1 vote
Accepted

Gosund (tuya) SP1-C managment via telnet

I found the way to manage my Gosund SP1-C outlet via Homa Assistant server and/or Home Assistant app. I need: pairing with Gosund SP1-C outlet via Home App and iPhone - this add my Gosund SP1-C ...
user216's user avatar
  • 11
1 vote

Securing first connection of non provisioned IoT device

In this case, since its a software, why not just allow it to have a UI, where you can ask for a userID, password and make an API call where you can then provision a device and get an IoT certificate ? ...
kalyanswaroop's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible