コード例 #1
0
        /// <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);
        }
コード例 #2
0
 public IAsyncResult BeginSendSensorReadingEvent(SE.Jetstream request, AsyncCallback callback, Object state)
 {
     this._sendSensorReadingEventAsync = new SendSensorReadingEventAsync(SendSensorReadingEvent);
     return this._sendSensorReadingEventAsync.BeginInvoke(request, callback, state);
 }