(address, on)
| 128 | return String.fromCharCode((a >> 8) & 0xFF, a & 0xFF, (v >> 8) & 0xFF, v & 0xFF); |
| 129 | } |
| 130 | function modbusWriteCoil(address, on) { |
| 131 | return modbusWriteRegister(address, on ? 0xFF00 : 0x0000); |
| 132 | } |
| 133 | function modbusWriteFloat(address, value) { |
| 134 | var buf = new ArrayBuffer(4); |
| 135 | new DataView(buf).setFloat32(0, value, false); |
nothing calls this directly
no test coverage detected