Exemplo n.º 1
0
 public async Task SendCommandAsync(byte[] buffer)
 {
     if (_client == null)
     {
         lock (_lock)
         {
             if (_client == null)
                 _client = new LEDClient(_hostName, _serviceName);
         }
     }
     await _client.SendDataAsync(buffer, buffer.Length);
 }
Exemplo n.º 2
0
 public async Task SendCommandAsync(byte[] buffer)
 {
     if (_client == null)
     {
         lock (_lock)
         {
             if (_client == null)
             {
                 _client = new LEDClient(_hostName, _serviceName);
             }
         }
     }
     await _client.SendDataAsync(buffer, buffer.Length);
 }