Skip to content

Commit

Permalink
Refactor Network module
Browse files Browse the repository at this point in the history
pio.ini
- add STARBASE_ETHERNET
- show optional features

SysModNetwork
- use STARBASE_ETHERNET
- reorder ui
- on off for each connection type
- status for each connection
- auto init and stop AP
- align naming
  • Loading branch information
ewoudwijma committed Sep 23, 2024
1 parent 764d830 commit 4090098
Show file tree
Hide file tree
Showing 5 changed files with 296 additions and 194 deletions.
1 change: 0 additions & 1 deletion misc/testOutput.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ callVarChangeFun fixSize unknown type for {"x":32,"y":32,"z":1}
setValue changed fixCount ->1024
StarJson destructing
FastLED.addLeds new 16: 0-1024
lastReconnectAttempt == 0
Access point disabled (init).
Connecting to WiFi ewtr / *********
setValue var vlLoopps[0] value null not array, creating
Expand Down
11 changes: 7 additions & 4 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,23 @@ lib_deps =
build_flags =
-D APP=StarBase
-D PIOENV=$PIOENV
-D VERSION=24092014 ; Date and time (GMT!), update at every commit!!
-D VERSION=24092320 ; Date and time (GMT!), update at every commit!!
-D LFS_THREADSAFE ; enables use of semaphores in LittleFS driver
-D STARBASE_DEVMODE
-mtext-section-literals ;otherwise [UserModLive::setup()]+0xa17): dangerous relocation: l32r: literal target out of range (try using text-section-literals)
;for StarLight, first only for s2, now for all due to something in UserModLive.Setup...
${ESPAsyncWebServer.build_flags} ;alternatively PsychicHttp
${STARBASE_USERMOD_E131.build_flags}
${STARBASE_USERMOD_MPU6050.build_flags}
;optional:
-D STARBASE_ETHERNET ; +41.876 bytes (2.2%)
${STARBASE_USERMOD_E131.build_flags} ;+11.416 bytes 0.6%
${STARBASE_USERMOD_MPU6050.build_flags} ;+35.308 bytes 1.8%
; ${STARBASE_USERMOD_HA.build_flags}
${STARBASE_USERMOD_LIVE.build_flags}
${STARBASE_USERMOD_LIVE.build_flags} ;+222.204 bytes 11.7%
lib_deps =
${ESPAsyncWebServer.lib_deps} ;alternatively PsychicHttp
https://github.com/bblanchon/ArduinoJson.git # 7.1.0
; https://github.com/Jason2866/ESP32_Show_Info.git
;optional:
${STARBASE_USERMOD_E131.lib_deps}
${STARBASE_USERMOD_MPU6050.lib_deps}
; ${STARBASE_USERMOD_HA.lib_deps}
Expand Down
Loading

0 comments on commit 4090098

Please sign in to comment.