Exemplo n.º 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;
     }
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 3
0
 public void AddRequest(CloudRequest request)
 {
     this._requestsToCloud.Add(request);
 }
Exemplo n.º 4
0
 public void AddRequest(CloudRequest request)
 {
     this._requestsToCloud.Add(request);
 }