public static void Main(string[] args) { Communication communication = new Communication("http://192.168.1.12"); Weathercube weathercube = new Weathercube(communication); weathercube.Load().Wait(); int id = weathercube.ID; }
public void TestCase() { Communication communication = new Communication("http://192.168.1.12"); Weathercube.Weathercube weathercube = new Weathercube.Weathercube(communication); Console.WriteLine("ID: {0}", weathercube.ID); Console.WriteLine("HardwareVersion: {0}", weathercube.HardwareVersion); Console.WriteLine("FirmwareVersion: {0}", weathercube.FirmwareVersion); Console.WriteLine("Location: {0}", weathercube.Location); Console.WriteLine("Time: {0}", weathercube.Time); Console.WriteLine("ConfigTime: {0}", weathercube.ConfigTime); Console.WriteLine("SSID: {0}", weathercube.SSID); Console.WriteLine("IP: {0}", weathercube.IP); Console.WriteLine("WifiState: {0}", weathercube.WifiState); }
/// <summary> /// Initializes a new instance of the <see cref="Weathercube.Weathercube"/> class. /// </summary> /// <param name="communication">The communication channel which should be used.</param> public Weathercube(Communication communication) { this.communication = communication; this.devices = new List<Device>(); }
public Device(Communication communication, string deviceID) { this.communication = communication; this.DeviceID = deviceID; }