Add configurable DS18B20 temperature probe support
This commit is contained in:
+55
@@ -538,3 +538,58 @@ Runtime behavior:
|
||||
AP always remains enabled.
|
||||
STA tries saved networks by priority.
|
||||
If STA disconnects, saved networks are retried every 30 seconds.
|
||||
|
||||
---
|
||||
|
||||
# Temperature Probe Setup API
|
||||
|
||||
## Scan Temperature Sensors
|
||||
|
||||
POST /temps/scan
|
||||
|
||||
Response:
|
||||
|
||||
{
|
||||
"type": "temp_scan_response",
|
||||
"ok": true,
|
||||
"devices": [
|
||||
{
|
||||
"index": 1,
|
||||
"address": "28:AA:BB:CC:DD:EE:FF:00"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
## Assign Temperature Sensor
|
||||
|
||||
POST /temps/assign
|
||||
|
||||
Request:
|
||||
|
||||
{
|
||||
"id": "temp_1",
|
||||
"index": 1
|
||||
}
|
||||
|
||||
Alternative request:
|
||||
|
||||
{
|
||||
"slot": 1,
|
||||
"index": 1
|
||||
}
|
||||
|
||||
## Clear Temperature Sensor
|
||||
|
||||
POST /temps/clear
|
||||
|
||||
Request:
|
||||
|
||||
{
|
||||
"id": "temp_1"
|
||||
}
|
||||
|
||||
Alternative request:
|
||||
|
||||
{
|
||||
"slot": 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user