(address, on)
| 187 | return String.fromCharCode((a >> 8) & 0xFF, a & 0xFF, (v >> 8) & 0xFF, v & 0xFF); |
| 188 | } |
| 189 | function modbusWriteCoil(address, on) { |
| 190 | return modbusWriteRegister(address, on ? 0xFF00 : 0x0000); |
| 191 | } |
| 192 | function modbusWriteFloat(address, value) { |
| 193 | var buf = new ArrayBuffer(4); |
| 194 | new DataView(buf).setFloat32(0, value, false); |
nothing calls this directly
no test coverage detected