MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / transmit

Function transmit

app/rcc/scripts/output/json_command.js:5–12  ·  view source on GitHub ↗

* JSON-encoded command payload. * For REST-like firmware APIs, ESP32 WebSocket endpoints, Node-RED flows.

(value)

Source from the content-addressed store, hash-verified

3 * For REST-like firmware APIs, ESP32 WebSocket endpoints, Node-RED flows.
4 */
5function transmit(value) {
6 var obj = {
7 cmd: "set",
8 value: value,
9 ts: Date.now()
10 };
11 return JSON.stringify(obj) + "\n";
12}

Callers

nothing calls this directly

Calls 1

nowMethod · 0.80

Tested by

no test coverage detected