Skip to content

Commit 6912ebc

Browse files
author
mariuste
committed
not yet working, mostly network
1 parent ddef44c commit 6912ebc

4 files changed

Lines changed: 9 additions & 5 deletions

File tree

firmware/projects/RFID_BOX_legacy/include/secret.h.example

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,11 @@
1717
#ifndef SECRET_H
1818
#define SECRET_H
1919

20+
#ifndef WIFI_SSID
21+
#define WIFI_SSID "YOUR_WIFI_SSID"
22+
#endif
23+
#ifndef WIFI_PASSWORD
24+
#define WIFI_PASSWORD "YOUR_WIFI_PASSWORD"
25+
#endif
26+
2027
#endif /* SECRET_H */

firmware/projects/RFID_BOX_legacy/platformio.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ lib_deps =
1818
; Gemeinsame Runtime-Config via Build-Flags
1919
; Server/Token/WLAN kommen global aus platformio.secrets.ini (nicht in Git).
2020
build_flags =
21-
-DWIFI_SSID=\"${secrets.wifi_ssid}\"
22-
-DWIFI_PASSWORD=\"${secrets.wifi_password}\"
21+
; WIFI_SSID + WIFI_PASSWORD in secret.h (gitignored)
2322
-DSERVER_HOST=\"${secrets.server_ip}\"
2423
-DAUTHENTICATION_TOKEN=\"${secrets.auth_token}\"
2524
-DOTA_ENABLED=1
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
[secrets]
2-
wifi_ssid = YOUR_WIFI_SSID
3-
wifi_password = YOUR_WIFI_PASSWORD
42
server_ip = YOUR_SERVER_IP
53
auth_token = YOUR_AUTH_TOKEN

firmware/projects/RFID_BOX_legacy/src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ void setLED_ryg(bool led_red, bool led_yellow, bool led_green) {
305305
/**
306306
* @brief Connects the ESP32 to the WiFi network.
307307
*/
308-
void connectToWiFi() {
308+
void connectToWiFi(bool waitForConnection) {
309309
Log.notice("[WiFi] Connecting to %s ...\n", WIFI_SSID);
310310
WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
311311
int retries = 0;

0 commit comments

Comments
 (0)