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; } }
public void AddRequest(CloudRequest request) { this._requestsToCloud.Add(request); }
public void AddRequest(CloudRequest request) { this._requestsToCloud.Add(request); }