#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_modbus_client_write_single_register(
client: *const PamojaModbusClient,
unit: u8,
address: u16,
value: u16,
out_error: *mut PamojaModbusClientError,
) -> PamojaStatusExpand description
Writes one holding register, function 0x06.
§Arguments
client- the client.unit- the device, 1 to 247, or 0 to broadcast to every device.address- the register’s address.value- the value to write.out_error- receives why the call failed, or null.
§Returns
As pamoja_modbus_client_read_coils.