| 48 | } |
| 49 | |
| 50 | void wsErr(const String &text) { |
| 51 | JsonDocument doc; |
| 52 | doc["errMsg"] = text; |
| 53 | if (wsMutex) xSemaphoreTake(wsMutex, portMAX_DELAY); |
| 54 | ws.textAll(doc.as<String>()); |
| 55 | if (wsMutex) xSemaphoreGive(wsMutex); |
| 56 | } |
| 57 | |
| 58 | // Live upload progress of data being sent to a display. |
| 59 | // Protocol: {"upload":{"src":"<16 hex MAC>","current":N,"total":M}} |
no outgoing calls
no test coverage detected