コード例 #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;
     }
 }
コード例 #2
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;
     }
 }
コード例 #3
0
 public void AddRequest(CloudRequest request)
 {
     this._requestsToCloud.Add(request);
 }
コード例 #4
0
 public void AddRequest(CloudRequest request)
 {
     this._requestsToCloud.Add(request);
 }