Questions tagged [iot]

QUESTIONS MUST BE PROGRAMMING RELATED.. Use a more specific tag for your question instead, e.g. [wifi], [bluetooth], [c], [arduino]

The Internet of Things (IoT) is a novel paradigm where many of the objects that surround us will be connected to the Internet, these objects can be Radio-Frequency IDentification (RFID) tags, sensors, actuators, mobile phones, etc. and through unique addressing scheme, are able to interact with each other and cooperate with their neighbors to reach common goals.

While programming questions about Internet of Things are on-topic here, other questions should be asked on the new Internet of Things Stack Exchange site.

enter image description here

If the question is not programming related then it may be on-topic at Raspberry Pi Stack Exchange, Internet of Things Stack Exchange or Unix & Linux Stack Exchange.

3888 questions
12
votes
8 answers

IoT request response protocol

We need to build a server that can communicate with some embedded devices running a variant of Android. We need to be able to send commands to the device, and receive a response. A simple command might be asking the device for it's status. We won't…
Dominic Bou-Samra
  • 14,799
  • 26
  • 100
  • 156
12
votes
3 answers

why and when i need mqtt broker for IOT/M2M application

Just asking one silly question, hope someone can answer this. I'm bit confused regarding MQTT broker. Basically, the confusion is, there are so many things being used for data storing, transfer and processing (like Flume, HDInsight, Spark etc). So,…
bapi
  • 1,903
  • 10
  • 34
  • 59
12
votes
4 answers

What are the major differences between HTTP and COAP?

HTTP is mainly used for viewing web pages. Coap is a simplified version of HTTP for IoT or WSNs. Although COAP is based on UDP, it should have ACK messages to emulate TCP. Since COAP is simpler than HTTP, it will have lower latency and draw less…
John Doyle
  • 898
  • 2
  • 9
  • 22
11
votes
4 answers

IoT: do I need to use MQTT or HTTP?

I'm working on a device that sense and collect information from the environment such as temperature, humidity, etc. The device is not connected to any power source, but it has a battery, and a solar panel to charge it. It's almost in a deep sleep…
zephrax
  • 127
  • 1
  • 1
  • 6
11
votes
2 answers

Android AllJoyn: Connection with second machine gives error of BusAttachement

I have developed application for two different sensors. They are working fine separately but when I try to use them togather and create two diffent buses than Alljoyn gives this exception. org.alljoyn.services.common.BusAlreadyExistException: The…
Robin Royal
  • 1,788
  • 1
  • 18
  • 29
10
votes
2 answers

How to catch ERR_CERT_AUTHORITY_INVALID in javascript

The Web Application I am developing needs to fetch data from a number of different IOTs within the local network, e.g., const response = await fetch("https://192.168.0.245/api/auto/login", options); Since it is an https connection, and each IOT…
brian
  • 863
  • 10
  • 21
10
votes
1 answer

AWS IoT Policy: subscribe vs receive actions

Most of the time I eventually create AWS IoT policies with the same content for Subscribe and Receive actions. If someone is allowed to subscribe one topic, it must be allowed to receive a message published to that topic. Another approach is to…
pozzugno
  • 750
  • 6
  • 19
10
votes
1 answer

Mesh networks with master/slave setup

Imagine there is a big physical open-space with 100s of IoT devices. All of them are inter-connected to each other through a mesh network (adhoc wifi) and each device has it's own data. Since it's a big space, the wifi router/access point can only…
ed1t
  • 8,719
  • 17
  • 67
  • 110
10
votes
3 answers

Android test wifi connection programmatically

I am programming an Android app for an IoT device. I have to give the device the WiFi username and password, so I am using an android app to do this. I have the following code, but it seems to always connect to the network weather or not the correct…
Reid
  • 4,376
  • 11
  • 43
  • 75
10
votes
3 answers

Does Microsoft Azure IoT Hub stores data?

I have just started learning Azure IoT and it's quite interesting. I am confuse about does IoT Hub stores data somewhere? i.e. Suppose i am passing room Temperature to IoT hub and want to store it in database for further use. How it's possible? I…
DSA
  • 720
  • 2
  • 9
  • 30
9
votes
0 answers

Toggle an Amazon Smart Plug from a Lambda function

I have an "Amazon Smart Plug" connected to home WiFi, and it is controllable right now using two mechanisms: From my Echo Show device, I can turn the plug on and off using the touchscreen or Alexa voice control. Using the Alexa app on mobile…
allquixotic
  • 1,481
  • 2
  • 18
  • 37
9
votes
2 answers

Mosquitto vs eclipse paho client library

I'm just looking into the details of Eclipse PAHO and Mosquitto client libraries (MQTT C++ libraries). It looks like the PAHO uses the mosquitto MQTT broker but provides its own MQTT client libraries. Also the Mosquitto library provides a way to…
Panch
  • 1,097
  • 3
  • 12
  • 43
9
votes
2 answers

ESP8266WebServer.h, "functional: No such file or directory"

I tried to install library ESP8266WebServer into platformio IDE. I got this error "functional: No such file or directory". A bit of research of "functional", http://www.cplusplus.com/reference/functional/ In file included from…
kenpeter
  • 7,404
  • 14
  • 64
  • 95
9
votes
2 answers

IBM IoT Foundation: When to use MQTT and when to use REST for event submission?

The IBM IoT Foundation allows devices to submit events to the IBM cloud for consumption and recording. There appears to be two primary mechanisms to achieve the transmission of events ... MQTT and REST (HTTP POST requests). Assuming that a project…
Kolban
  • 13,794
  • 3
  • 38
  • 60
9
votes
3 answers

RFID RC522 Raspberry PI 2 Windows IOT

I'm looking for a way to use the RFID "RC522" on a Raspberry Pi 2.0 on Windows IOT. It is of course not offical compatible... The offical one (OM5577 demo board) is way to expensive in France (i haven't found any reseller who sold it without a lot…
David
  • 319
  • 1
  • 2
  • 8