Questions tagged [iot]

A new paradigm where many, typically microcontroller-driven embedded systems are connected by the Internet, and they are cooperating with eachother to reach common goals, without requiring human-to-human or human-to-computer interaction.

Filter by
Sorted by
Tagged with
5
votes
2answers
22k views

Simple GET request with ESP8266HTTPClient

I am trying to do a simple GET request. But I always get status code -1. Here is my complete code. #include <Arduino.h> #include <ESP8266WiFi.h> #include <ESP8266HTTPClient.h> ...
3
votes
3answers
3k views

ESP8266 disconnects after few hours

My system looks like this: ESP8266 is connected to Arduino Uno (2, 3 pins) and a relay's data input to Arduino's pin 12 and power for relay is provided from another source. Arduino gets data from ...
3
votes
1answer
261 views

Connect ESP32 via MQTT

For a project I am working on, I need to connect my ESP32 board to another server via MQTT protocol. I am using the Mosquitto MQTT Broker and it is presently on my laptop. Following is the test code I ...
3
votes
0answers
4k views

How to listen to multiple server ports with ESP8266?

I'm using WeMos D1 R2. I'm trying to listen to both ports 1992 and 1993. This is my current code: #include WiFiServer server_1992(1992); WiFiServer server_1993(1993); void setup() { Serial....
2
votes
2answers
81 views

How to read wireless doorbell's indicator LED circuit

I have a cheap wireless doorbell. My plan is to include an ESP8266 and power the doorbell from the microcontroller 3.3V output as the doorbell also runs on 3V I specifically chose a model with a LED, ...
2
votes
0answers
40 views

Arduino MKR NB 1500 websockets

I am trying to implement websockets for MKR1500 and I am having trouble finding a perfect example to implement it. Can someone guide me to an example that works with MKR1500?
2
votes
1answer
50 views

How to increase the frequency of data transmission of SIM900A GSM Module connected to Arduino Uno?

I have a SIM900A GSM Module hooked onto an Arduino Uno board. The Arduino is connected to a MPU6050 Accelerometer which is constantly monitoring data at 1 second interval. I am trying to transmit the ...
2
votes
0answers
478 views

how to get live view of esp32cam at remote sever using ssh tunneling?

I have found many projects involving esp32cam, but in all projects video is being seen on local server only.For its of no use.As for a home security project user can view the video at remote location ...
2
votes
0answers
579 views

How to achieve active 4G LTE communication?

I'm not sure if this is correct place to post this, if not PLEASE redirect me to the proper page, as this matter is quite pressing to me. My entire day was spent researching different methods of ...
1
vote
3answers
124 views

variable name standards, e.g best method to send motion_detect=true

I am working with some sensors and sending data to a public web server via http, I was thinking this server can be possibly used by more people to send their data and server displays a chart. I was ...
1
vote
2answers
433 views

Arduino SIM5320e HTTP GET request to 000webhost.com

Im having trouble getting a successful HTTP GET request to a domain under 000webhost.com I am trying to do a GET request which sends data to a php file on my domain and save it to MySQL database. I ...
1
vote
1answer
41 views

Arduino MKR GMS alternative

I’m starting on a project about monitoring the soil in the agriculture field and also to visualise the data remotely. The aim of this project is collect the atmospheric data as well as the soil ...
1
vote
1answer
48 views

Audrino mkr1500 keeps going offline

I am using a MKR1500 with an Arduino SIM. I am able to upload the code on the device using the web editor. But when once I am done uploading the code, the device shows status offline and I am unable ...
1
vote
1answer
322 views

Raspberry Pi 3B+ BLE communication to Arduino Nano 33 IOT

I have an Arduino Nano 33 IOT and it uses BLE. I want it to talk to my Pi 3B+ and send all of its sensor data. I cannot figure out a way to do it using Python for the Pi and ArduinoBLE library for my ...
1
vote
1answer
396 views

Programming ESP8266 to avoid random exceptions?

Below is the code that I have done on Lolin Wemos D1 R2 and mini it works fine but it throws exceptions every time, I tried understanding my problem by reading this: NodeMCU 1.0 - Exception 9 `Fatal ...
1
vote
1answer
105 views

Relay with NodeMCU is not working

I'm using a Relay Channel and NodeMCU(8266-WIFI). When i trigger the connection, LED Turns ON in Node MCU But the Relay connection is not working. I'm not sure what is the issue, Please help to fix it....
1
vote
1answer
436 views

Is there possible implement websocket using AT Command?

For example I have a sim800l module to communicate to a server using websocket (socket.io) but that module allows AT Command to operate. I have successfully made an HTTP request, but I don't know how ...
1
vote
1answer
243 views

Not able to convert String to Integer when receiving data from pubnub?

I did managed to upload mpu9250 sensor data on PubNub and nodeMcu but not able to use the received data to control servo Look at the Port reading and see that servo angle is still showing '0' Code:-...
1
vote
2answers
696 views

Is it possible to connect miband2 and arduino nano (?)

I want to make an IOT project using an Arduino nano and I need heart rate sensors. I I have a miband2. So, is it possible to connect them ?
1
vote
1answer
27k views

How to post HTTP POST requests on my website?

I am working on a NodeMCU board to post sensor data on my website service. Basically my project is about POST and GET requests both in single code. I am succeeding in sending GET requests from my ...
1
vote
0answers
46 views

Can I add my Wi-Fi credentials to ESP module remotely?

I am working on Home automation project and I am stuck somewhere on connecting my smart switch board to internet through my home WIFI. Actually I want to connect my ESP module with my home Wi-Fi ...
1
vote
0answers
67 views

Multiple MQTT topics

I have 3 nodemcu's(ESP32) each connected with a sensor, from which I get data and send it to aws IoT-core. How can I send all 3 sensor's data by a single MQTT subscription? The below code is for a ...
1
vote
0answers
29 views

ESP8366: ets Jan 8 2013,rst cause:4, boot mode:(1,7)

I am trying to control esp8266 esp 01 with Alexa This is my code: #include <Arduino.h> #include <ESP8266WiFi.h> #include "fauxmoESP.h" #define ssid "admin" #define ...
1
vote
0answers
26 views

4004 (NOT_FOUND) ON MQTT

I tried to send random data to MQTT but it's not working and I get: { "m2m:rsp" : { "rsc" : 4004, "rqi" : "123456", "pc" : "Resource not found", "to" : "5a185cedc6ad749b:...
1
vote
1answer
53 views

Send commands from cPanel website to client ESP8266

I have a project where I want to remotely turn on and off a relay using an Arduino,(ESP8266) over the internet. I have a remote web server that hosts my existing hobby website, cPanel hosted by ...
1
vote
0answers
214 views

My nodemcu esp8266 is heating a lot and the on board LED of gpio16 is On continuously. What's the Reason of heating?

How it happened Recently I was working on a device with Blynk application in which my device will burn crackers using Blynk. I wanted to create a safe environment for burning crackers. There was a ...
1
vote
0answers
34 views

How can I use Arduino Analog Uno pins as Digital pins? [duplicate]

How can I use Arduino Uno Analog Pins as Digital pins, So that I can Attach more components like sensors to the Arduino? My 13 pins are preoccupied and I want more.
1
vote
0answers
30 views

serially parse integer after serially read

I want to write below code but I don't know where I doing wrong, so please help me solve this issue. Serially read some text like number then I want to serially parse integer value into some variable ...
1
vote
0answers
33 views

Send message to multiple number

sim.println("AT+CMGS=\"+91xxxxxxxxxx\"\r"); I don't want to write this. I want to write mobile number on serial monitor in Arduino and on that number, i want to send message. how ...
1
vote
0answers
92 views

Send data from GSM module to cloud server like firebase

I am trying to search for anything to send my sensor data from Arduino + GSM SIM900A to a cloud server, preferably firebase. Does anyone know how can I achieve this operation to firebase or any other ...
1
vote
1answer
113 views

Arduino Nano IoT 33 Char Array size constraints

I would like to save data that I am receiving from API calls in a char array. The problem is the data is around 80KB however my Arduino IoT 33 has 32KB of memory. It will save data in a char array ...
1
vote
0answers
152 views

Saving Power :: Reducing Power Consumption

For Arduino Nano 33 IoT, I want to turn off everything except Bluetooth and Wireless since I don't use them. My question please: Can I switch off / deactivate the IMU sensors completely? If yes, How ...
1
vote
0answers
314 views

node mcu disconnect from mqtt server

/* Basic ESP8266 MQTT example This sketch demonstrates the capabilities of the pubsub library in combination with the ESP8266 board/library. It connects to an MQTT server then: - ...
1
vote
0answers
195 views

Unable to find/connect I2C devices (SHT31 & SGP30)

I have recently purchased an Arduino Nano 33 IOT together with two sensors: Adafruit SHT31-D (https://learn.adafruit.com/adafruit-sht31-d-temperature-and-humidity-sensor-breakout) Adafruit SGP30 (...
1
vote
0answers
27 views

Missing ArduinoJson/DynamicJsonBuffer.hpp

I have read other posts regarding ArduinoJson that recommend using a library version no later than 5.14.3. That recommendation is more than a year old - is it still the recommended library version?
1
vote
1answer
272 views

Random characters transmitted from ESP8266 to Arduino

Below is the code for getting a value from Firebase and sending the received data to arduino for performing necessary action. The code here here sends a string "o" to arduino once //uploaded to ...
1
vote
0answers
96 views

How to set ALPN ProtocolName when negotiating SSL using ArduinoBearSSL

I am trying to set up an Arduino MKR Wifi 1010 to push MQTT messages to AWS IOT. I am following this tutorial https://create.arduino.cc/projecthub/Arduino_Genuino/securely-connecting-an-arduino-mkr-...
1
vote
0answers
71 views

Dragino Lora shield for Arduino sensor use

I am new to arduino and lora technology and i have dragino lorashield for arduino Uno and dragino gateway. I have also MQ-3 gas sensor and I want to detect the alcohol value and to send it to the ...
1
vote
0answers
70 views

Arduino MKR QoS 1 logging with ArduinoMqttClient

I am collecting data with Arduino MKR GSM 1400 and sending data to Azure Cloud (IOT HUB). Currently I use ArduinoMqttClient ArduinoMqttClient My question is, how to ensure both parties accepted QoS1 ?...
1
vote
0answers
80 views

Interface gps and ultrasonic sensor simultaneously

I am able to interface gps and the ultrasonic sensor and obtain data successfully for individual interfacing with the Arduino UNO. When I combined the code for these two, I only get the data values ...
1
vote
0answers
222 views

ESP 01 calling Pushing Box API

I want to write my data on google sheets using ESP 01 and Arduino Nano. So I copied code from some website I don't remember the website "how to send data on a local server" and modified it a bit. But ...
1
vote
0answers
460 views

ESP8266 WiFi.begin() isn't working

I did a project for IoT attendance system using ESP8266 and RDM6300. However, I can connect to wifi using WiFiMulti.addAP() function for my home WiFi. I tried WiFi.begin() instead of WiFiMulti.addAP(...
1
vote
0answers
911 views

Blynk.Begin(auth, ssid, pass) causing watchdog reset

I am trying to follow this tutorial and I keep hitting a problem repeatedly. I checked in my code that every time it hits the line Blynk.begin(auth, ssid, pass);, the serial monitor shows me that ...
1
vote
0answers
221 views

ESP8266 webserver does not return latest HTTP response

I tried getting a HTTP response from an ESP8266 which is in HTTP server mode, I am getting a response but not the latest one, response is always one command previous to that of my request to the ESP. ...
1
vote
0answers
359 views

Send data from arduino to server using GSM, TCP

My actual connection is like: Arduino -> GPRS(http)-> my server(php script)-> firebase <-android plotting app But it only allows to send some data once every 2 - 3 seconds (depending of ping to my ...
1
vote
0answers
165 views

ESP8266 http.get() issue due to wifi authentication failure

Facing a weird issue while reading data from esp8266. I am trying to read dynamic data from a demo text file on test server on same network in deep sleep mode. Case1: Joining new network I am using ...
1
vote
0answers
662 views

MQTT subscribe callback fails to be called in ESP8266 deepsleep mode

Refer to ESP8266 deep sleep and MQTT I executed the code in the given link. However i am not able to receive the subscribe message that are send from MQTT test broker(MQTT Lens) on the serial ...
1
vote
2answers
396 views

How to get a list of IPs in a LAN using NodeMcu?

I'm going to create an IoT system. I use a Raspberry Pi as a MQTT broker and as a webserver. Every day, the Pi gets a new IP address, so I need to find its new IP address via ESP8266 to use this ...
1
vote
0answers
41 views

Arduino clients suddenly not able to connect (or publish) to MQTT

we are struggling with a project that has things (arduinos as clients) communicating to our MQTT broker (mosquitto) running on a DigitalOcean droplet (inside a docker). We have about 200 things at ...
1
vote
0answers
51 views

Can't connect to the server

I am working on a specific project that requires a database. I have done the 'connection' and the "write" of data using a PHP file. I have even reconfigured everything so it would be possible to ...