Hot answers tagged

15 votes
Accepted

Does the ESP8266 somehow remember wifi access data?

Yes, normally the last WiFi credentials will be saved in flash and the ESP8266 loads this data on bootup and reconnect to the last known WiFi. See https://github.com/esp8266/Arduino/issues/2843#...
Maximilian Gerhardt's user avatar
12 votes
Accepted

WiFi Password Safety

You're actually entering into a very tricky and difficult area. Yes, having a plain text password in your sketch is a risk. It is stored in flash as plain text. If an attacker can gain access to the ...
Majenko's user avatar
  • 105k
10 votes
Accepted

How to allow cross-domain requests on ESP8266WebServer

Add the CORS header to every response, not only for 'preflight' OPTIONS request. The OPTIONS support is optional, but the response returning the 'shared resource' must contain the CORS header "...
Juraj's user avatar
  • 17.8k
9 votes
Accepted

Can I use arduino's 3.3 V output directly to esp8266?

You should search for this data yourself, but since you are saying you are a newbie I'll tell you how to find this. First of all you should search for a document called "datasheet". On a datasheet ...
frarugi87's user avatar
  • 2,721
9 votes

ESP8266 - does it really have terrible wifi range by default?

The very first thing I notice is that your WiFi antenna is shielded by the PCB. That is the antenna is placed right over the top of the ground plane of the PCB and your range is going to be severely ...
sa_leinad's user avatar
  • 3,188
8 votes
Accepted

ESP8266 Analog read interferes with wifi?

I have found that this was caused by reading the analog pin to many times in a short period of time. I replaced ldrState = map(analogRead(ldrPin), ldrMin, ldrMax, 0, 100); Serial.println(...
JanG's user avatar
  • 183
8 votes
Accepted

Analog read not working while using WiFi

The ESP32 has two ADCs. One of them, ADC2, is actively used by the WiFi. From the IDF documentation: Since the ADC2 module is also used by the Wi-Fi, only one of them could get the preemption when ...
Majenko's user avatar
  • 105k
7 votes
Accepted

Serving binary file with ESP8266WebServer

It looks like you can use the send_P function to send raw PROGMEM data: void send_P(int code, PGM_P content_type, PGM_P content, size_t contentLength); I.e., (from what I can gather): PGM_P favicon ...
Majenko's user avatar
  • 105k
7 votes
Accepted

EPS8266 ESP-01: LED manipulation seems to interfere with serial communication

I would bet that the built-in LED pin is also the TX pin for the serial interface. Check here, LED Pin section: http://www.esp8266.com/wiki/doku.php?id=esp8266_gpio_pin_allocations LED Pin ...
Mazaryk's user avatar
  • 1,149
7 votes

ESP8266 on WiFi without password, possible?

Yes, it works! You can use: WiFi.begin(ssid, NULL) or even leave the passphrase empty, because it is optional: WiFi.begin(ssid) Reference: https://www.arduino.cc/en/Reference/WiFiBegin
sporc's user avatar
  • 181
7 votes

How to turn off or stop Access Point network in ESP8266?

I've already solved, by using a function of the library Wifi, specific for the connections in "Access Point" mode: WiFi.softAPdisconnect (true); Reference: softapdisconnect
wBB's user avatar
  • 293
7 votes
Accepted

How to get current WiFi signal strength?

You use WiFi.RSSI(): RSSI Return the signal strength of Wi-Fi network, that is formally called Received Signal Strength Indication (RSSI). WiFi.RSSI() Signal strength value is provided in dBm. The ...
Majenko's user avatar
  • 105k
7 votes
Accepted

how to change a const char*

that function indeed requires "const char*" as parameters There seems to be a misunderstanding here. The method signature is: bool ESP8266WiFiAPClass::softAP(const char* ssid, const char* ...
Edgar Bonet's user avatar
  • 42.2k
6 votes

ESP8266 Analog read interferes with wifi?

This is an old question that has been answered, but I would like to offer a slightly more elegant solution (IMO!): In my method which reads the analog data, I check and only read every 50 ...
Phil's user avatar
  • 161
6 votes
Accepted

Use ESP-01 with Arduino Uno/Nano, with the ESP8266WiFi library

You cannot use that "library". Simply because that isn't a library, that is a core. It's the entirety of the Arduino API designed to run on an ESP8266. You can use it to program the ESP8266 directly ...
Majenko's user avatar
  • 105k
6 votes
Accepted

ESP32 - `Brownout detector was triggered ` upon Wifi begin

Those boards have an inherent weakness in that they don't provide enough decoupling capacitance for the module. Not all modules are quite the same, and some have more internal decoupling than others (...
Majenko's user avatar
  • 105k
6 votes
Accepted

Arduino Library to make http post request with bearer authentication

The "Authorization" is simply an HTTP header. So add it in your request like: http.addHeader("Authorization", token); The value of "token" is just the string "...
jwh20's user avatar
  • 1,045
5 votes

WiFi module ESP8266 + Arduino Uno

Since all of the data pins use 5 V, one of the solutions is to use a voltage regulator, such as LM2596. You do not want a voltage regulator you need a level shifter. You can buy them cheaply or make ...
Nick Gammon's user avatar
  • 37.9k
5 votes

Using Arduino for Industrial process

Industruino just came out a couple days ago: https://blog.arduino.cc/2015/09/21/industruino-makes-industrial-automation-easy-now-atheart/ https://industruino.com/page/home https://www.youtube....
Gabriel Staples's user avatar
5 votes

Difference between WiFiClient and HttpClient

WiFiClient provides a raw connection to the internet through a WiFi access point (such as your home router). HttpClient provides a connection to a web server via an existing Client connection, such ...
Majenko's user avatar
  • 105k
5 votes
Accepted

List of connected clients to server

The WiFiClient.h header and WifiClient.cpp source files are useful for reference. Is the best data structure a linked list? Probably not here. Possibly not ever. It's a load of effort to ...
Mark Smith's user avatar
  • 2,181
5 votes
Accepted

ESP8266 UDP multicast doesn't receive packets

I recently had the same problem. The unequivocal answer is that there is a power optimization (internal by Espressif) to save power, I guess, and it really creates havoc in the UDP Multicast ...
RSN's user avatar
  • 66
5 votes
Accepted

Can the WiFi on ESP8266 be disabled?

To turn of the WiFi add the WiFi library and use WiFi.forceSleepBegin(); Firmware is the program/sketch that controls a MicroController Unit aka MCU (and in this case a Arduino). Best explanation I ...
MatsK's user avatar
  • 1,356
5 votes

ESP8266 not connecting to WiFi

Maybe you have a space in your WIFI SSID so you should check this in your router. Also maybe your WIFI is on 5Ghz and the ESP can't see it because it is only for 2.4 Ghz. Also if your WIFI AP is on a ...
Coder_fox's user avatar
  • 678
5 votes

ESP8266 print DNS address (obtained via DHCP)

Serial.println(WiFi.dnsIP()); If you have more than one DNS server you can specify the index: Serial.println(WiFi.dnsIP(1));
Majenko's user avatar
  • 105k
5 votes
Accepted

ESP32 open "captive portal" on connected

Thanks to @Majenko I was able to find what I was looking for on the internet from this link. When I googled "captive portal" instead of the phrases that I was using I found a lot more ...
Tono Nam's user avatar
  • 938
5 votes
Accepted

Why does Arduino Nano 33 IoT always choose the weakest WiFi BSSID?

On Nano 33 IoT the WiFi network adapter is NINA esp32 module with Arduino's nina-fw. nina-fw is written with the use of ESP-IDF framework by the esp32 manufacturer Espressif. To connect to an AP the ...
Juraj's user avatar
  • 17.8k
4 votes
Accepted

FCC Certification

These products are not certified, they merely have been verified and issued a Declaration of Conformity. The WiFi module on the WiFi shield itself has been certified, as indicated by the FCC ID on its ...
Jake C's user avatar
  • 1,099
4 votes
Accepted

Link Arduinos over 5 acre laser tag field

You can use nRF24L01+ The chips offer: Really high range with power amplifier (1km open field radius (776 acres if I'm right) , but fairly high power consumption 100-150mA @ 3.3V) High range with ...
Avamander's user avatar
  • 624

Only top scored, non community-wiki answers of a minimum length are eligible