port = $port; usleep(50000); // no idea how to fix this. wait for server to "warm" up or modbus UDP socket will timeout. does not occur with TCP $this->assertEquals([1], $modbus->readCoils(0, 256, 1)); }, 'UDP'); $packetWithoutTransactionId = substr($clientData[0], 4); $this->assertEquals('00000006000101000001', $packetWithoutTransactionId); } }