Example #1
0
 private void UARTDataArrived(WUSerialPacketResponse data)
 {
     switch (data.Command)
     {
     case 0x9:     // UART_REQUEST_CHECK_DEVICE_ID
         CloudRequest req = new CloudRequest();
         req.UARTRequest = data;
         this._cloud.AddRequest(req);
         // TODO
         // 1. HTTP request to server with device ID.
         // 2. Add request to list of requests, delete it when response will be sent to the device.
         break;
     }
 }
 private void UARTDataArrived(WUSerialPacketResponse data)
 {
     switch (data.Command)
     {
         case 0x9: // UART_REQUEST_CHECK_DEVICE_ID
             CloudRequest req = new CloudRequest();
             req.UARTRequest = data;
             this._cloud.AddRequest(req);
             // TODO
             // 1. HTTP request to server with device ID.
             // 2. Add request to list of requests, delete it when response will be sent to the device.
             break;
     }
 }
Example #3
0
 public void AddRequest(CloudRequest request)
 {
     this._requestsToCloud.Add(request);
 }
Example #4
0
 public void AddRequest(CloudRequest request)
 {
     this._requestsToCloud.Add(request);
 }