№ 9737 В разделах: Electronics
ESP8266
Programming
от February 13th, 2019,
В подшивках: ESP8266, Smart Home, WifiManager
In Arduino IDE library you can find wifi manager (https://github.com/tzapu/WiFiManager). It will help you to connect your device to you home wifi without hardcoding credentials.
My projects where used wifi managers:
If you interested check whole tag.
Sample code:
#include <ESP8266WiFi.h> #include <DNSServer.h> #include <ESP8266WebServer.h> #include <WiFiManager.h> void setup() { .... WiFiManager wifiManager; wifiManager.autoConnect("my-device-name"); .... }
More examples here.
Fortune cookie: QOTD: "Whip me, beat me, come all over me, tell me you love me. Then get the fuck out."
Leave a Reply