예제 #1
0
        /// <summary>
        /// Upload the HEX file to the cash register
        /// </summary>
        /// <param name="intelHex"></param>
        public async void UploadHexFile(IntelHex intelHex)
        {
            FirmwareInfo firmwareInfo = new FirmwareInfo();

            firmwareInfo.Set("Version", intelHex.Headers.Version);
            firmwareInfo.Set("Description", intelHex.Headers.Description);
            firmwareInfo.Set("FirmwareGUID", intelHex.Headers.FirmwareGUID);
            Task <dynamic>   task   = this.SendFirmwareInfo(firmwareInfo);
            dynamic          result = await task;
            ResponseFirmware responseFirmwareInfo = ParseFirmwareInfoResponse(result);

            if (responseFirmwareInfo.IsSuccess)
            {
            }
        }
예제 #2
0
 /// <summary>
 /// Send firmware info
 /// </summary>
 /// <param name="info"></param>
 /// <returns></returns>
 public dynamic SendFirmwareInfo(FirmwareInfo info)
 {
     return(httpClient.RequestPost("/cgi/fw_version", info, false).Result);
 }