redo esp32 disconnect

This commit is contained in:
Shawn A
2018-01-24 08:27:56 -06:00
parent f3be7c7c0b
commit 2af1c62bd1
3 changed files with 10 additions and 4 deletions
@@ -14,6 +14,7 @@
// ESP-01 users please note: the only pins available (0 and 2), are shared
// with the bootloader, so always set them HIGH at power-up
#define TRIGGER_PIN 0
const char* modes[] = { "NULL", "STA", "AP", "STA+AP" };
void setup() {
@@ -21,6 +22,10 @@ void setup() {
Serial.begin(115200);
Serial.println("\n Starting");
Serial.setDebugOutput(true);
Serial.println(modes[WiFi.getMode()]);
WiFi.printDiag(Serial);
pinMode(TRIGGER_PIN, INPUT);
}