Example #1
0
 public async void SetRelay(int relayId, bool state)
 {
     if (_relayNodeConsumer != null)
     {
         await _relayNodeConsumer.SetStateAsync(relayId, (byte)(state ? 1 : 0));
     }
 }