arduino-esp8266

Inconsistent connectivity via WiFi manager in ESP8266

China☆狼群 提交于 2021-01-29 20:12:51
问题 I am facing a peculiar problem. The below code snippet connects to new WiFi network. No hard-coded ssid or password in the program . I am using AsyncWifiManager and AsyncWebServer modules. When I am connecting to my home WiFi router providing ssid and password in autoconnect portal, NodeMCU is getting connected and the server is working fine. But whenever I am changing the WiFi, connecting to my mobile phone hotspot, then server is not running, though I am getting local IP address in Serial

Take json string from ESP8266WiFi, and save it as a string variable in NodeJS to write a CSV file

余生颓废 提交于 2021-01-29 09:02:24
问题 I want to take a JSON string of DHT22 sensor value (temperature and humidity) from this ESP8266WiFi through WiFi. #include <DHT.h> //library DHT.h #include <ESP8266WiFi.h> #define DHTPIN 14 // GPIO14 #define DHTTYPE DHT22 // DHT 22 (AM2302) DHT dht(DHTPIN, DHTTYPE, 15); const char* ssid = "myhotspot"; const char* password = "mypassword"; WiFiServer server(80); void setup() { Serial.begin(115200); dht.begin(); Serial.println(); Serial.print("Wifi connecting to "); Serial.println( ssid ); WiFi

ESP8266 - Response from server gets cut

自古美人都是妖i 提交于 2021-01-28 11:41:52
问题 I'm using an ESP8266 connected to an Arduino one via SoftwareSerial to make a post request to a node web server. The ESP8266 sends some data to the server and it should get back other data. The data arrives at the server correctly, but the response from the server is incomplete (it gets cut each time in a different way) and I can't access the body of the response from my Arduino sketch. The server sends the response correctly, as i've checked with hurl. This is my code: #include

ESP8266 ESP-01 not show data from server in Arduino IDE serial monitor

本小妞迷上赌 提交于 2020-12-15 19:34:56
问题 i am new in arduino and ESP8266 module AT commands. I still learn about how to receive data from server and it show the data in Arduino serial monitor. I will tell you how i do and i hope someone will tell me what's wrong with my code or if any mistake that i have done. This is my php code in server side. Just a simple coding. I save it as index.php : <?php ECHO $_GET['subject']; ?> This is my AT commands in Arduino IDE serial monitor. AT+CIPSTART="TCP","nyalalampu.atwebpages.com",80 CONNECT

Arduino Iot Project parseObject() failed

主宰稳场 提交于 2020-05-17 08:47:26
问题 I'm trying to control 8 channel relay with esp8266. and i've been following this tutorial on youtube https://www.youtube.com/watch?v=dLmz0xdDOLk I did exactly what the guy said. I uploaded my code to Arduino and I get a "parseObject() failed" error on the serial monitor while the code trying to parse JSON i think(not sure). I don't really understand coding much so I wonder if you guys help me out with my project.(the only thing I couldn't do was to change my web host PHP version to 5.2, I use

Arduino Iot Project parseObject() failed

十年热恋 提交于 2020-05-17 08:47:22
问题 I'm trying to control 8 channel relay with esp8266. and i've been following this tutorial on youtube https://www.youtube.com/watch?v=dLmz0xdDOLk I did exactly what the guy said. I uploaded my code to Arduino and I get a "parseObject() failed" error on the serial monitor while the code trying to parse JSON i think(not sure). I don't really understand coding much so I wonder if you guys help me out with my project.(the only thing I couldn't do was to change my web host PHP version to 5.2, I use

Unable to connect https protocol with ESP8266 using WifiClientSecure

泪湿孤枕 提交于 2020-01-16 04:09:05
问题 I'm trying to get ESP8266 position by unwiredlabs. I followed with this introduction. This is my arduino code: #include <ESP8266HTTPClient.h> #include <ArduinoJson.h> #include "ESP8266WiFi.h" char myssid[] = "Your wifi/hotspot name"; char mypass[] = "Your password"; const char* Host = "www.unwiredlabs.com"; String endpoint = "/v2/process.php"; String token = "d99cccda52ec0b"; String jsonString = "{\n"; double latitude = 0.0; double longitude = 0.0; double accuracy = 0.0; void setup(){ Serial

Not able to Receive subscribed Message with PubSubClient.h in Arduino Uno R3

情到浓时终转凉″ 提交于 2020-01-15 09:28:50
问题 #include "SPI.h" #include “WiFiEsp.h” #include <WiFiEspClient.h> #include “SoftwareSerial.h” #include <PubSubClient.h> #include <WiFiEspUdp.h> float temp=0; int tempPin = 0; int isClientConnected = 0; char data[80]; char ssid[] = “SSID”; // your network SSID (name) char pass[] = “PASSWORD”; // your network password int status = WL_IDLE_STATUS; // the Wifi radio’s status char deviceName = “ArduinoClient1”; IPAddress server(xxx,xxx,xxx,xxx); //MQTT server IP IPAddress ip(192,168,43,200); void