コード例 #1
0
ファイル: Program.cs プロジェクト: bjoernbusch/weathercube
        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;
        }
コード例 #2
0
ファイル: Test.cs プロジェクト: bjoernbusch/weathercube
        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);
        }
コード例 #3
0
 /// <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>();
 }
コード例 #4
0
ファイル: Device.cs プロジェクト: bjoernbusch/weathercube
 public Device(Communication communication, string deviceID)
 {
     this.communication = communication;
     this.DeviceID = deviceID;
 }