(method, params)
| 45 | // wrapper below routes through apiCall. delay() exists only where the host |
| 46 | // bridge provides it (the control script's worker thread). |
| 47 | function apiCall(method, params) { return __ss_bridge.call(method, params || {}); } |
| 48 | function apiCallList() { return __ss_bridge.listCommands(); } |
| 49 | function delay(ms) { if (__ss_bridge.delay) __ss_bridge.delay(ms); } |
| 50 | // deviceWriteAndWait(data, timeoutMs, until, source): write then block the worker |