Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Firmware/Arduino/Example_Websocket/Example_Websocket.ino
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ static const int spiClk = 10000000;

SimpleTimer timer;

void parse_command(String read_string);

const char index_html[] PROGMEM = R"rawliteral(
<!DOCTYPE HTML><html>
Expand Down Expand Up @@ -470,7 +471,7 @@ void setup() {
digitalWrite(LED_2, !digitalRead(LED_2));
});

wifiMulti.addAP("VEGG_5", "sss3kk2aaaa4");
wifiMulti.addAP(ssid, password);
while(wifiMulti.run() != WL_CONNECTED) {
Serial.println("WiFi not connected!");
delay(1000);
Expand All @@ -487,8 +488,8 @@ void setup() {

// Start server
server.begin();


}

void loop() {
Expand Down
18 changes: 18 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[env:esp32dev]
platform = https://github.com/platformio/platform-espressif32.git#feature/arduino-upstream
board = esp32dev
framework = arduino
platform_packages = platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git
lib_deps =
https://github.com/me-no-dev/ESPAsyncWebServer.git
jfturcot/SimpleTimer@0.0.0-alpha+sha.b30890b8f7