/// <summary> /// Send a SensorReadingEvent ot the Jetstream Device Webserver /// </summary> /// <param name="request">The SensorReadingEvent</param> public void SendSensorReadingEvent(SE.Jetstream request) { if (request == null) throw new ArgumentNullException("request"); String message = ChangeDatesToUTC(MessageHelper.SerializeObject(typeof(SE.Jetstream), request), new String[] { "EventTime", "ReadingTime" }, "http://Jetstream.TersoSolutions.com/v1.0/Device/SensorReadingEvent"); SendMessageToJetStream(message); }
public IAsyncResult BeginSendSensorReadingEvent(SE.Jetstream request, AsyncCallback callback, Object state) { this._sendSensorReadingEventAsync = new SendSensorReadingEventAsync(SendSensorReadingEvent); return this._sendSensorReadingEventAsync.BeginInvoke(request, callback, state); }