|
@@ -440,7 +440,7 @@ namespace HengshanPaymentTerminal
|
|
|
switch(context.Incoming.Message.Handle)
|
|
|
{
|
|
|
//心跳,带油枪状态信息
|
|
|
- case 10:
|
|
|
+ case 0x10:
|
|
|
{
|
|
|
//将油枪状态区分为空闲或非空闲,记录在内存。当状态有发生变化,发送到云端
|
|
|
HeartBeatMessage heartBeatMessage = (HeartBeatMessage)context.Incoming.Message;
|
|
@@ -925,9 +925,9 @@ namespace HengshanPaymentTerminal
|
|
|
//发送云端
|
|
|
SendNozzleStatu sendNozzleStatu = new SendNozzleStatu(nozzleState);
|
|
|
logger.Info($"send nozzle state to cloud,{sendNozzleStatu.NozzleId}-{sendNozzleStatu.Status}");
|
|
|
- HttpResponseMessage httpResponseMessage = await httpClientUtil.SendNozzleStatu(JsonConvert.SerializeObject(sendNozzleStatu));
|
|
|
- Response<object>? response = JsonConvert.DeserializeObject<Response<object>>(await httpResponseMessage.Content.ReadAsStringAsync());
|
|
|
- logger.Info($"reveice send nozzle state response:{JsonConvert.SerializeObject(response)}");
|
|
|
+ //HttpResponseMessage httpResponseMessage = await httpClientUtil.SendNozzleStatu(JsonConvert.SerializeObject(sendNozzleStatu));
|
|
|
+ //Response<object>? response = JsonConvert.DeserializeObject<Response<object>>(await httpResponseMessage.Content.ReadAsStringAsync());
|
|
|
+ //logger.Info($"reveice send nozzle state response:{JsonConvert.SerializeObject(response)}");
|
|
|
}
|
|
|
|
|
|
/// <summary>
|