Questions tagged [communication]

For questions relating to protocol-independent communication methods between user and machine as well as between machines within the IoT ecosystem.

88 questions
26
votes
2 answers

What is the difference between MQTT and Web Sockets, and when should I use them?

What are the major differences between MQTT and Web Sockets? When using IoT for home automation - control and monitoring access over different devices, which one of them should be used when Rest API based and browser based accessibility is…
Shakti Phartiyal
  • 713
  • 1
  • 6
  • 15
26
votes
2 answers

Is CoAP still used for IoT devices?

I did a prototype project for work a few years ago that utilized the Constrained Application Protocol (CoAP) for communicating with an Arduino board over a mesh network, but we put the brakes on the project due to a serious lack of security in our…
Jarren Long
  • 365
  • 2
  • 10
18
votes
4 answers

How can I easily configure Wi-Fi on a smart device without a screen?

I'm making an IoT device that will serve a web app over WiFi which can be accessed to control it. I would like to make it easy to set up. For example, the easiest way I can imagine is as follows; all it would need is a phone or similar with NFC…
Jayy
  • 283
  • 2
  • 6
16
votes
2 answers

How can a device get the SSID and Password of my Network without WPS?

I'm studying ways to make an IoT device access an user´s wifi network. I know about the WPS way, where the device 'broadcast' a signal and the router, after being commanded to listen, 'receive' it and give the device it's access. There's also the…
Eric Akira
  • 163
  • 1
  • 6
15
votes
3 answers

Is Bluetooth 3.0 suitable for a single-master multiple-slave network?

I have a data logger board with a SIM808 on it. It has Bluetooth 3.0 capability by the SIM808. The board itself implements a battery management system, capable of performing weight, humidity and temperature measurements and also can detect device…
Bence Kaulics
  • 7,843
  • 8
  • 42
  • 90
15
votes
2 answers

What Messaging Type can be used for Cellular Network Oriented IoT Protocols?

This came to my attention recently when I found an amazing video on Youtube by: Micheal E. Anderson: Comparing Messaging Techniques for the IoT, OpenIoTSummit, Linux Foundation. The slides for his talk are Available Here On Slide 26 and 41 minutes…
Shan-Desai
  • 1,558
  • 10
  • 23
14
votes
1 answer

How does an Azure IoT Hub interact with Embedded/IoT devices?

I am working on the Azure IoT platform, and I understand how devices send data to the IoT hub (if I am not wrong, It is just web service call or something similar to that). But I wonder how the IoT hub sends Data/Command/Input to the devices,…
Shri
  • 341
  • 1
  • 10
12
votes
1 answer

Non-IP device Communication Protocols

I have a question about Non-IP device communication. From my research, I learnt CoAP and DDS can be used for Device-to-Device communication. MQTT is useful for Device-to-Gateway or Device-to-Service or Cloud. My question is, how can a non-IP device…
Creed
  • 167
  • 5
12
votes
3 answers

Does XMPP have a large overhead for IoT devices sending short, frequent messages?

I've been reading about XMPP as a potential communications protocol for IoT devices but, after reading one source, I'm unsure whether it's really an appropriate protocol if you're concerned about overhead for each message. This source…
Aurora0001
  • 18,520
  • 13
  • 55
  • 169
10
votes
2 answers

Is there a way to preserve the MQTT QoS level until it reaches the client?

MQTT allows senders to set a Quality of Service (QoS) level, which provides certain guarantees about whether a message will be received (and whether duplicates are permitted). This article from HiveMQ highlights the problem of downgrading, where a…
Aurora0001
  • 18,520
  • 13
  • 55
  • 169
10
votes
1 answer

Is there any way to access local server from outside without port forwarding?

Situation I need to access an ESP8266's Wi-Fi local server from outside. Like Xiaomi Yeelight (YeeLight Introduction Web Site Link) or LOHAS LED (LOHAS LED Web Site), I have to control it from outside not in same Wi-Fi. I can only think of port…
Josh
  • 247
  • 1
  • 4
10
votes
2 answers

How do car insurance tracking devices connect to the internet?

There are these devices that you can plug into your car and the insurance company can get real time data to "lower" your insurance cost. Image from U.S.News, 2016. How do they connect to the internet? Satellites? Mobile network? Searching on Google…
10
votes
1 answer

How can I synchronise data between devices, avoiding loss of messages and duplication?

I have an IoT network of devices sending data to each other, with data being stored in a database. If I have a device sending 10 packets/API requests in sequence, sometimes only a few reach their destination. For example, packets 1, 3 and 9 might…
9
votes
1 answer

Are there standardized MQTT topics?

I am new to MQTT (and home automation in general, I am much more in the systems and dev side), flashed a WiFi switch (Sonoff Basic), connected it to an instance of Mosquitto and Home Assistant and so far everything works fine. When monitoring the…
WoJ
  • 865
  • 1
  • 6
  • 14
9
votes
2 answers

Trying to switch my lights off in my smart home

My main objective is to make my arduino or create a app on android to control lights in the house. So my home has the Nexwell Tukan and I can control the lights and power outlets and more, it also has a LAN card with it so it can be controlled with…
Tymec
  • 93
  • 4
1
2 3 4 5 6