Files
MSE-SoftwEng/TSM_PicoW_Sensor/README.md
2025-05-06 13:07:01 +00:00

53 lines
984 B
Markdown

# TSM_PicoW_Sensor
Project using the PicoW board. It publish sensors values (humidity, temperature) to an MQTT broker.
## Configuration
You have to use the serial terminal to configure the board by sending commands.
### Wifi
```shell
McuMinINI write settings.ini WiFi ssid "YOUR_SSID"
McuMinINI write settings.ini WiFi pass "YOUR_PASSWORD"
```
### MQTT
```shell
McuMinINI write settings.ini MQTT broker "BROKER_NAME"
McuMinINI write settings.ini MQTT user "USERNAME"
McuMinINI write settings.ini MQTT pass "PASSWORD"
```
## Build
Project has `Debug`, `Release` and `Test` targets, using CMake Presets.
Configure:
```
cmake --list-presets
cmake --preset Debug
cmake --preset Release
cmake --preset Test
```
Build:
```
cmake --build --list-presets
cmake --build --preset app-debug
cmake --build --preset app-release
cmake --build --preset app-test
```
Test:
```
ctest --list-presets
ctest --test-dir build/Test -R Led_1
```
Worflow:
```
cmake --workflow --list-presets
```