Beispiel #1
0
 public string Receive()
 {
     if (IsConnected == true)
     {
         var response = _urSocket.Receive();
         return(ISecondaryPackage.Unpack(response).TrimEnd('\n'));
     }
     return("");
 }
Beispiel #2
0
 public void Send(string command)
 {
     if (IsConnected == true)
     {
         command += '\n';
         var package = ISecondaryPackage.Pack(command);
         _urSocket.Send(package);
     }
 }