Implement automatic sleep mode disable for NL43/NL53 during config updates and measurements

This commit is contained in:
serversdwn
2026-01-14 19:58:22 +00:00
parent 3d445daf1f
commit b74360b6bb
5 changed files with 474 additions and 1 deletions

View File

@@ -48,6 +48,8 @@ Update device configuration.
}
```
**Important:** When TCP is enabled and connection details are provided, sleep mode will be automatically disabled on the device. This is necessary because sleep/eco mode turns off TCP communications, which would prevent remote monitoring and control.
## Device Status
### Get Cached Status
@@ -96,6 +98,8 @@ POST /{unit_id}/start
```
Starts measurement on the device.
**Important:** Before starting the measurement, sleep mode is automatically disabled to ensure TCP communications remain active throughout the measurement session.
### Stop Measurement
```
POST /{unit_id}/stop
@@ -445,6 +449,12 @@ Enables Sleep Mode on the device. When enabled, the device will automatically en
**Note:** This is a SETTING, not a command to sleep immediately. Sleep Mode only applies when using Timer Auto measurements.
**Warning:** Sleep/eco mode turns off TCP communications, which will prevent remote monitoring and control. For this reason, SLMM automatically disables sleep mode when:
- Device configuration is created or updated with TCP enabled
- Measurements are started
If you need to enable sleep mode for battery conservation, be aware that TCP connectivity will be lost until the device is physically accessed or wakes for a scheduled measurement.
### Wake Device
```
POST /{unit_id}/wake