Beispiel #1
0
 private DeviceMessage SendAndReadPacketSync(DeviceMessageSendType type, short[] data)
 {
     lock (_lock)
     {
         DeviceMessage message = new DeviceMessage();
         message.SendType = type;
         message.SendData = data;
         _serialService.SendAndReceivePacketSync(message);
         return(message);
     }
 }