云接入时发现的一个问题,记录避免以后踩坑

只启动kafka监听,云平台下发命令,会收到

{"cmdId":"26404333ec604cc4bde418bd600212a4","data":"66666","deviceKey":"854bf7d11555404f957f4edc3a49943b","productKey":"raGuwKjK","state":1,"time":1568963362734,"timeDue":1568963406734,"type":3,"userKey":"b1m40fJD"}

但是同时启动  数据模拟推送   和kafka监听,云平台下发命令,会收到

{"cmdId":"26404333ec604cc4bde418bd600212a4","data":"66666","deviceKey":"854bf7d11555404f957f4edc3a49943b","productKey":"raGuwKjK","state":1,"time":1568963362734,"timeDue":1568963406734,"type":3,"userKey":"b1m40fJD"}
{"cmdId":"26404333ec604cc4bde418bd600212a4","deviceKey":"854bf7d11555404f957f4edc3a49943b","productKey":"raGuwKjK","state":2,"time":1568963362744,"timeDue":0,"type":0,"userKey":"b1m40fJD"}
{"cmdId":"26404333ec604cc4bde418bd600212a4","deviceKey":"854bf7d11555404f957f4edc3a49943b","productKey":"raGuwKjK","state":3,"time":1568963362840,"timeDue":0,"type":0,"userKey":"b1m40fJD"}
{"cmdId":"26404333ec604cc4bde418bd600212a4","deviceKey":"854bf7d11555404f957f4edc3a49943b","productKey":"raGuwKjK","state":5,"time":1568963362890,"timeDue":0,"type":0,"userKey":"b1m40fJD"}

state不同   应该和内部逻辑有关,附上state状态截图

云接入时发现的一个问题,记录避免以后踩坑_第1张图片

 

你可能感兴趣的:(云接入时发现的一个问题,记录避免以后踩坑)