ESP214/ESP212 and hooks (#999)

* Add expandString to ESP214

* Implement ESP212 for sending text to printer screen (M117)

* Implement hooks for got IP and got DateTime

* Allow finish processing  current stream before adding new one instead of reject

* Add parmeter to expandString to escape space

* Update notifications_service.cpp

* Add sanity check for hooks and autoscript
This commit is contained in:
Luc
2024-02-08 10:32:24 +01:00
committed by GitHub
parent ec7c422f7f
commit 2c1661007d
18 changed files with 228 additions and 39 deletions

View File

@@ -1292,6 +1292,43 @@ the admin password if authentication is enabled
* `status` status of command, should be `ok`
* `data` content of response, here `ok`
+++
archetype = "section"
title = "[ESP212]"
weight = 800
+++
Output to printer screen status
## Input
`[ESP212]<Text> json=<no> pwd=<admin password>`
* json=no
the output format
can be in JSON or plain text
* pwd=<admin password>
the admin password if authentication is enabled
* Text
* if Text is not empty, it will set the Text
* if Text is empty, it will clear current Text
## Output
- In json format
```json
{
"cmd":"212",
"status":"ok",
"data":"ok"
}
```
* `cmd` Id of requested command, should be `212`
* `status` status of command, should be `ok`
* `data` content of response, here `ok`
+++
archetype = "section"
title = "[ESP214]"
@@ -1329,7 +1366,6 @@ the admin password if authentication is enabled
* `status` status of command, should be `ok`
* `data` content of response, here `ok`
+++
archetype = "section"
title = "[ESP215]"