Initial commit: UlHub workspace

This commit is contained in:
ulhub
2026-07-12 01:09:33 +00:00
commit ed2fae9455
931 changed files with 142973 additions and 0 deletions

27
test/README.md Normal file
View File

@@ -0,0 +1,27 @@
Test scripts (Python)
Setup:
```bash
cd test
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
```
Run publisher (connects to MQTT TCP 1883 by default):
```bash
python publish_sample.py
```
Run websocket test (connects to wss://dev.hub.umagul.net/mqtt by default):
```bash
python test_ws_mqtt.py
```
Environment variables:
- `MQTT_HOST`, `MQTT_PORT`, `MQTT_PATH`, `MQTT_TOPIC`
- `MQTT_USERNAME`, `MQTT_PASSWORD` for auth
- `TLS_VERIFY=false` to skip TLS validation for testing