Get lamp state via API #225
-
I would like to see a API get command of the current lamp percentage. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You can get the lamp value from from the existing status command. |
Beta Was this translation helpful? Give feedback.
-
Started as an issue, but a fair enough question that others may also ask, so transferring to a discussion |
Beta Was this translation helpful? Give feedback.
You can get the lamp value from from the existing status command.
https://github.com/easytarget/esp32-cam-webserver/blob/master/API.md#examples
The only 'special' value is
-1
, which indicates 'no lamp'. Otherwise zero is off, and the reading is in percentage.