42
42
#include < PolledTimeout.h>
43
43
#include < include/WiFiState.h> // WiFiState structure details
44
44
45
- // #define DEBUG // prints WiFi connection info to serial, uncomment if you want WiFi messages
45
+ // #define DEBUG // prints WiFi connection info to serial, uncomment if you want WiFi messages
46
46
#ifdef DEBUG
47
47
#define DEBUG_PRINTLN (x ) Serial.println(x)
48
48
#define DEBUG_PRINT (x ) Serial.print(x)
56
56
57
57
// uncomment one of the two lines below for your LED connection (optional)
58
58
#define LED 5 // D1/GPIO5 external LED for modules with built-in LEDs so it doesn't add amperage
59
- // #define LED 2 // D4/GPIO2 LED for ESP-01,07 modules; D4 is LED_BUILTIN on most other modules
60
- // you can use LED_BUILTIN, but it adds to the measured amperage by 0.3mA to 6mA.
59
+ // #define LED 2 // D4/GPIO2 LED for ESP-01,07 modules; D4 is LED_BUILTIN on most other modules
60
+ // you can use LED_BUILTIN, but it adds to the measured amperage by 0.3mA to 6mA.
61
61
62
62
ADC_MODE (ADC_VCC); // allows you to monitor the internal VCC level; it varies with WiFi load
63
63
// don't connect anything to the analog input pin(s)!
@@ -72,7 +72,7 @@ IPAddress dns1(0, 0, 0, 0);
72
72
IPAddress dns2 (0 , 0 , 0 , 0 );
73
73
uint32_t timeout = 30E3 ; // 30 second timeout on the WiFi connection
74
74
75
- // #define TESTPOINT // used to track the timing of several test cycles (optional)
75
+ // #define TESTPOINT // used to track the timing of several test cycles (optional)
76
76
#ifdef TESTPOINT
77
77
#define testPointPin 4 // D2/GPIO4, you can use any pin that supports interrupts
78
78
#define testPoint_HIGH digitalWrite (testPointPin, HIGH)
0 commit comments