Write function with data over connector. Will be called from the ModbusClientImpl
ModbusClientImpl
void write(int function, Uint8List data);