|
|
|
@ -25,6 +25,7 @@ public class BatteryStatusReportedReqHandler : SimpleChannelInboundHandler<Batte
|
|
|
|
|
/// </summary>
|
|
|
|
|
protected override void ChannelRead0(IChannelHandlerContext ctx, BatteryStatusReportedReq msg)
|
|
|
|
|
{
|
|
|
|
|
// ctx.Channel.WriteAndFlushAsync(message: new Msg.Host.Req.WhetherChargedReq());
|
|
|
|
|
UpdateBinInfo(msg.granary01, "1");
|
|
|
|
|
UpdateBinInfo(msg.granary02, "2");
|
|
|
|
|
UpdateBinInfo(msg.granary03, "3");
|
|
|
|
@ -34,6 +35,7 @@ public class BatteryStatusReportedReqHandler : SimpleChannelInboundHandler<Batte
|
|
|
|
|
UpdateBinInfo(msg.granary07, "7");
|
|
|
|
|
UpdateBinInfo(msg.granary08, "8");
|
|
|
|
|
UpdateBinInfo(msg.granary09, "9");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void UpdateBinInfo(int exists, string binNo)
|
|
|
|
|