#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_modbus_line_attach(
line: *const PamojaModbusLine,
server: *const PamojaModbusServer,
) -> PamojaStatusExpand description
Puts a device on a line. The line shares the device, so the caller’s handle still reads and changes it.
§Arguments
line- the line.server- the device.
§Returns
PamojaStatus::Ok, or PamojaStatus::InvalidArgument for a null argument.
§Safety
line and server must be live handles or null.