Initial commit: UlHub workspace
This commit is contained in:
27
test/README.md
Normal file
27
test/README.md
Normal 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
|
||||
Reference in New Issue
Block a user