public static void Main() { var wifi = new NeonWifiDevice(); wifi.Connect(SSID, PASSWD); var sntp = new SntpClient(wifi, "time1.google.com"); sntp.SetTime(); MobileServiceClient msc = new MobileServiceClient(wifi, azureMobileAppUri, null, AzureAppKey); IMobileServiceTable tab = msc.GetTable("environment_measures"); // Test a dummy insert for now MeasurementRow row = new MeasurementRow(); string result = tab.Insert(row); Debug.Print(DateTime.Now.ToString("T") + " " + result); bool state = true; int iCounter = 0; while (true) { Hardware.UserLed.Write(state); state = !state; if (++iCounter == 10) { Debug.Print("Current UTC time : " + DateTime.UtcNow); iCounter = 0; } Thread.Sleep(500); } }
public void AddMeasurementRow(MeasurementRow row) { this.Rows.Add(row); }
public void RemoveMeasurementRow(MeasurementRow row) { this.Rows.Remove(row); }
public MeasurementRowChangeEvent(MeasurementRow row, global::System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; }