Browse Source

move wifi credentials to new header file

main
Hendrik Langer 8 years ago
parent
commit
5a145f741a
  1. 4
      .gitlab-ci.yml
  2. 3
      src/hardware.h
  3. 1
      src/wifi.cpp

4
.gitlab-ci.yml

@ -9,8 +9,8 @@ build:
script:
# - platformio lib -g install 1
# - platformio ci --board=esp32thing
- sed -i "s/^\(#define WIFI_SSID \).*/\1\"$WIFI_SSID\"/" src/hardware.h
- sed -i "s/^\(#define WIFI_PASSWORD \).*/\1\"$WIFI_PASSWORD\"/" src/hardware.h
- sed -i "s/^\(#define WIFI_SSID \).*/\1\"$WIFI_SSID\"/" src/soundboard.h
- sed -i "s/^\(#define WIFI_PASSWORD \).*/\1\"$WIFI_PASSWORD\"/" src/soundboard.h
- platformio run
- ln -s .pioenvs/esp32thing build
- cp /home/user/.platformio/packages/framework-arduinoespressif32/tools/sdk/bin/bootloader.bin build/

3
src/hardware.h

@ -30,7 +30,4 @@
#define BUF_LENGTH 1024
#define WIFI_SSID "ssid"
#define WIFI_PASSWORD "password"
#endif /* _HARDWARE_H */

1
src/wifi.cpp

@ -14,6 +14,7 @@
// ToDo: check if https://github.com/me-no-dev/ESPAsyncWebServer/ becomes available
// libwebsockets got ESP32 support in v2.2 !
#include "soundboard.h"
#include "hardware.h"
#include "sound.h"

Loading…
Cancel
Save