public void TestStatus() { using (var client = new PikoClient("192.168.0.43")) { var value = client.GetStatus(255); output.WriteLine($"Status: {value}"); } }
public void TestTotalKwh() { using (var client = new PikoClient("192.168.0.43")) { double value = client.GetTotalKwh(255); Assert.True(value > 0); output.WriteLine($"Total Energy: {value}"); } }
public void TestDeviceInfo() { using (var client = new PikoClient("192.168.0.43")) { var value = client.GetDeviceInfo(255); Assert.False(string.IsNullOrEmpty(value.Name)); output.WriteLine($"Name: {value.Name}"); Assert.False(string.IsNullOrEmpty(value.Model)); output.WriteLine($"Model: {value.Model}"); Assert.False(string.IsNullOrEmpty(value.Serial)); output.WriteLine($"Serial: {value.Serial}"); } }