Native test suite (61 tests, 5 suites) with thin mock layer for Arduino/FreeRTOS/esp_timer enabling host-side testing without hardware. ASCOM Alpaca REST API on port 32323 with UDP discovery, implementing Telescope v3 interface for N.I.N.A., PHD2, and compatible software. Follows existing ST4WiFi conditional compilation pattern. README documents wiring, all three protocols (serial, WebSocket, Alpaca), pin/rate configuration, and build instructions.
65 lines
1.5 KiB
INI
65 lines
1.5 KiB
INI
; ST4-ESP32 PlatformIO library
|
|
; For building examples: use 'make' targets (uses pio ci)
|
|
; For development/upload: pio run -e <env> (uses symlink lib_deps)
|
|
|
|
[platformio]
|
|
default_envs = serial_compatible
|
|
|
|
[base_esp32]
|
|
platform = espressif32
|
|
board = esp32dev
|
|
framework = arduino
|
|
monitor_speed = 115200
|
|
lib_deps = symlink://.
|
|
|
|
[env:basic_gpio]
|
|
extends = base_esp32
|
|
build_src_filter = +<../examples/basic_gpio/>
|
|
|
|
[env:serial_compatible]
|
|
extends = base_esp32
|
|
build_src_filter = +<../examples/serial_compatible/>
|
|
|
|
[env:pulse_guide]
|
|
extends = base_esp32
|
|
build_src_filter = +<../examples/pulse_guide/>
|
|
|
|
[env:wifi_control]
|
|
extends = base_esp32
|
|
build_flags = -DST4_WIFI_ENABLED
|
|
lib_deps =
|
|
symlink://.
|
|
bblanchon/ArduinoJson@^7.0.0
|
|
mathieucarbou/ESPAsyncWebServer@^3.6.0
|
|
build_src_filter = +<../examples/wifi_control/>
|
|
|
|
[env:alpaca_server]
|
|
extends = base_esp32
|
|
build_flags = -DST4_ALPACA_ENABLED
|
|
lib_deps =
|
|
symlink://.
|
|
bblanchon/ArduinoJson@^7.0.0
|
|
mathieucarbou/ESPAsyncWebServer@^3.6.0
|
|
build_src_filter = +<../examples/alpaca_server/>
|
|
|
|
[env:native]
|
|
platform = native
|
|
test_framework = unity
|
|
build_flags =
|
|
-I test/mocks
|
|
-I include
|
|
-std=c++17
|
|
-DST4_NATIVE_TEST
|
|
-DUNITY_INCLUDE_DOUBLE
|
|
test_build_src = true
|
|
build_src_filter =
|
|
+<../src/ST4Pin.cpp>
|
|
+<../src/ST4Axis.cpp>
|
|
+<../src/ST4Tracker.cpp>
|
|
+<../src/ST4Controller.cpp>
|
|
+<../src/ST4Serial.cpp>
|
|
-<../src/ST4Pulse.cpp>
|
|
-<../src/ST4WiFi.cpp>
|
|
+<../test/mocks/mock_state.cpp>
|
|
+<../test/mocks/ST4Pulse_stub.cpp>
|