mirror of
https://github.com/luc-github/ESP3D.git
synced 2025-10-31 11:56:48 -07:00
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:
@@ -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]"
|
||||
|
||||
Reference in New Issue
Block a user