| 1 | // WiFi network to use for connections |
| 2 | #define WIFI_SSID "Hackspace" |
| 3 | #define WIFI_PASS "electronics" |
| 4 | |
| 5 | // This devices unique ID and shared auth secret |
| 6 | #define DEVICE_ID "frontdoor" |
| 7 | #define SECRET "abcdef" |
| 8 | |
| 9 | // URL of the API |
| 10 | #define AUTH_HOST "swansea.hackspace.org.uk" |
| 11 | #define AUTH_URL "/auth/log.php" |
| 12 | |
| 13 | // MFRC522 Pins |
| 14 | #define RST_PIN 5 // MFRC522 Reset Pin |
| 15 | #define SS_PIN 15 // MFRC522 Select Pin |
| 16 | |
| 17 | #define LED_PIN 2 |
| 18 | |
| 19 | #define LOCK_PIN 16 |
| 20 | #define LOCK_TIME 3000 // unlock for 3 seconds |
| 21 | |
| 22 | // how long to try to connect the wifi |
| 23 | #define WIFI_COUNT 20 |
| 24 | #define WIFI_DELAY 250 // 20 x 250mS == 5s |
| 25 | |
| 26 | // how often to retry the connection |
| 27 | #define WIFI_RETRY 60000 |
| 28 | |
| 29 | // filename on SPIFFS that stores key list |
| 30 | #define KEYS_FILE "/keys" |
| 31 | |
| 32 | |
| 33 | |
| 34 | #undef DEBUG |