Questions tagged [arduino-esp8266]

This project brings support for ESP8266 chip to the Arduino environment. It lets you write sketches using familiar Arduino functions and libraries, and run them directly on ESP8266, no external microcontroller required.

This project brings support for ESP8266 chip to the Arduino environment. It lets you write sketches using familiar Arduino functions and libraries, and run them directly on ESP8266, no external microcontroller required. https://github.com/esp8266/Arduino

984 questions
30
votes
4 answers

Arduino IDE can't find ESP8266WiFi.h file

I am trying to use NOD MCU ESP8266WiFi with Arduino IDE When I run this code: #include #include char auth[] = "YourAuthToken"; char ssid[] = "YourNetworkName"; char pass[] = "YourPassword"; void setup(){ …
Abuwesam
  • 417
  • 1
  • 4
  • 5
18
votes
3 answers

ESP8266/Arduino: Why is it necessary to add the ICACHE_RAM_ATTR macro to ISRs and functions called from there?

Note: Since esp8266/Arduino release 3.0.0 ICACHE_RAM_ATTR has been changed to IRAM_ATTR. For future readers, I updated the links to the ESP8266 Arduino Core docs, but left the rest of the question unchanged. I read that I need to add the…
x-ray
  • 3,279
  • 5
  • 24
  • 37
13
votes
2 answers

Is there a esp8266 simulator for testing code written on Arduino IDE?

Is there a good esp8266 simulator software that can be used to automate testing? Is it possible to get code written on Arduino IDE to run on these simulators?
ambassallo
  • 924
  • 1
  • 12
  • 27
12
votes
4 answers

How do you get a timestamp in Arduino-ESP8266?

I would like to get a timestamp with Arduino-ESP8266. But I don't have any idea how to get that. I suppose we have to get the time from the Internet since the ESP8266 doesn't have any clock. Do we need to do that only once or every time we need a…
stallingOne
  • 3,633
  • 3
  • 41
  • 63
9
votes
2 answers

ESP: Auto login/accept message by OS with redirect to page like public WIFI portals access points

Example: I do not know how you call this feature so I try to explain it. For example when you connect your phone to a public WiFi hotspot/access point, you receive a message from OS that it is required to accept terms/conditions or you need to logon…
Codebeat
  • 6,501
  • 6
  • 57
  • 99
8
votes
1 answer

ESP8266 Micropython - connecting to University Wi-fi ( WPA2 Enterprise PEAP )

I have a board with an ESP8266 chip running Micropython firmware v1.8.7. My requirement is to use WebREPL via the University Wi-Fi, which uses WPA2 Enterprise EAP-MSCHAPv2 authentication. My Google-fu so far has informed me that Arduino users have…
Udu
  • 83
  • 1
  • 5
7
votes
1 answer

ESP8266 Sniffing and sending Mac address

I'm trying to make my ESP8266 sniffing nearby devices, then posting them by with a HTTP request. With purpose is to record when my roommate and I are at home. Then in the future, trigger certain tasks like turning on/off the lights if we're home or…
Gheotic
  • 81
  • 2
  • 7
6
votes
2 answers

Error: call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url)

I tried to do a Clock News Weather Scrolling Marquee with the esp8266. But when I upload the code it's got an error. Can you help me? Here's a part of the code:( under the MIT License (Copyright 2018 David Payne)) void…
Brothermid
  • 69
  • 1
  • 2
  • 6
6
votes
9 answers

How to fix "SerialTimeoutException: Write timeout" error with NodeMCU and arduino ide

I was trying to build a simple IoT product using a nodemcu, an LED, and the blynk app. This is the most basic thing you can do with a nodemcu. However, when I was uploading the example from the Blynk library, I was getting this error. It seems to be…
Saumit Paul
  • 69
  • 1
  • 1
  • 3
6
votes
1 answer

ESP32/ESP8266 connect to localhost server using WiFi

I have made a simple Node.js local server to receive POST requests from ESP32 and put it in a database. The server is working fine as I tested it using postman. The server is listening to port 127.0.0.1:3000. My problem is that client.connect(host,…
Natalie
  • 123
  • 1
  • 2
  • 9
6
votes
2 answers

Error on sending AT+CWJAP_DEF commands to ESP8266

I am trying to send AT commands to ESP8266 to get connected with internet with the Wifi. When I am sending AT and AT+RST command on serial monitor then I am getting OK and ready response which seems perfect. Then I am sending AT+CWLAP to get list of…
N Sharma
  • 33,489
  • 95
  • 256
  • 444
6
votes
1 answer

NodeMCU auto-join open wifi

I have searched for solution for this issue for quite a long time with no luck. I would like NodeMCU to look for an open wifi network and connect to it. As long as the connection is available use that connection - and when the connection drops start…
5
votes
1 answer

Unable to connect https protocol with ESP8266 using WifiClientSecure

I'm trying to get ESP8266 position by unwiredlabs. I followed with this introduction. This is my arduino code: #include #include #include "ESP8266WiFi.h" char myssid[] = "Your wifi/hotspot name"; char mypass[]…
simpsons3
  • 880
  • 1
  • 11
  • 29
5
votes
1 answer

WeMos D1 Mini esptool.FatalError: Timed out waiting for packet header

I have a WeMos D1 Mini. Here is the board information: Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: "LOLIN(WEMOS) D1 R2 & mini, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB…
AdityaB
  • 123
  • 1
  • 1
  • 8
5
votes
1 answer

Receiving data from a server using ESP8266 /Arduino Uno

I have a Raspberry Pi working as a WiFi hotspot and an Arduino Uno trying to get data from it using an ESP8266 module. This is my receiver code for Arduino: #include #include #define sw_serial_rx_pin 4 // …
Sachith Muhandiram
  • 2,819
  • 10
  • 45
  • 94
1
2 3
65 66