Skip to content

Instantly share code, notes, and snippets.

View andgineer's full-sized avatar
💭
Andrey Sorokin, engineer

Andrey Sorokin andgineer

💭
Andrey Sorokin, engineer
View GitHub Profile
@andgineer
andgineer / wpstest.ino
Created September 14, 2017 12:00 — forked from copa2/wpstest.ino
Example for WPS connection with https://github.com/esp8266/Arduino
#include <ESP8266WiFi.h>
void setup() {
Serial.begin(115200);
delay(1000);
Serial.printf("\nTry connecting to WiFi with SSID '%s'\n", WiFi.SSID().c_str());
WiFi.mode(WIFI_STA);
WiFi.begin(WiFi.SSID().c_str(),WiFi.psk().c_str()); // reading data from EPROM, last saved credentials
while (WiFi.status() == WL_DISCONNECTED) {