(positions)
| 39 | // the 3D view; this mirrors them to the server where the alert loop can read. |
| 40 | let _posSyncTimer = null; |
| 41 | function syncNodePositionsToBackend(positions) { |
| 42 | clearTimeout(_posSyncTimer); |
| 43 | _posSyncTimer = setTimeout(() => { |
| 44 | req('POST', '/api/config', { rusense_node_positions: positions || {} }); |
| 45 | }, 800); |
| 46 | } |
| 47 | |
| 48 | // Node names are not just a UI label — mirror them to the backend too, so |
| 49 | // server-side alerts (e.g. "node offline") can say "Living room" instead of "#2". |
no test coverage detected