-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.h
19 lines (19 loc) · 830 Bytes
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#define ACCESS_POINT "ArduinoAQI Setup"
#define ACCESS_POINT_PASSWORD NULL // non-NULL string of length 8-63 bytes sets a password to enable WPA2 encryption
#define THINGSPEAK_REGISTRY_CHANNEL_NUMBER 0
#define THINGSPEAK_REGISTRY_API_KEY ""
#define THINGSPEAK_DEFAULT_DATA_CHANNEL_NUMBER 0
#define THINGSPEAK_DEFAULT_DATA_WRITE_API_KEY ""
#define THINGSPEAK_RATE_LIMIT_SECONDS 120
#define DISPLAY_LENGTH 4
#define SPINUP_SECONDS 10
#define WIFI_VARIABLE_LENGTH 60
#define MAX_CONNECTION_ATTEMPTS 5
#define MAX_DISCONNECT_ATTEMPTS 10
#define HOURS_TO_RESTART 6
#define MESSAGES_PER_YEAR 3000000
#define PIN_LED_CLK 14 // SCK D5 on WeMos D1 R2
#define PIN_LED_DIO 12 // MISO D6 on WeMos D1 R2
#define PIN_RESET 13 // MOSI D7 on WeMos D1 R2
#define PIN_PMS_TX 5 // SCL D1 on WeMos D1 R2
#define PIN_PMS_RX 4 // SDA D2 on WeMos D1 R2