MiEcosystem / mijiaSDK

mijiaSDK新地址:https://github.com/MiEcosystem/MiJiaConnectDemo
102 stars 34 forks source link

获取设备属性超时,rpc timestamp time out #9

Closed Chgocn closed 5 years ago

Chgocn commented 6 years ago

sdk版本:3.3.3

从Iot平台获取属性参数是可以正常获取到的,但是从SDK中获取属性信息报如下错误:

09-05 14:47:29.825 26073-26132/com..app:miot D/DeviceManipulatorImpl: readProperty: [77516639].[urn:schemas-mi-com:service:xxxx:BaseService:1] 09-05 14:47:29.836 26073-26130/com..app:miot D/miio-JNI: hencrypt begin hencrypt begin, did 18446744073709551615 stamp 4294967295 09-05 14:47:31.840 26073-26130/com..app:miot E/miio-localapi: rpc timestamp time out, retry 1 09-05 14:47:33.844 26073-26130/com..app:miot E/miio-localapi: rpc timestamp time out, retry 2 09-05 14:47:35.849 26073-26130/com..app:miot E/miio-localapi: rpc timestamp time out, retry 3 09-05 14:47:35.850 26073-26130/com..app:miot E/miio-localapi: java.net.SocketTimeoutException: Receive timed outjava.net.SocketTimeoutException: Receive timed out at java.net.PlainDatagramSocketImpl.receive0(Native Method) at java.net.AbstractPlainDatagramSocketImpl.receive(AbstractPlainDatagramSocketImpl.java:147) at java.net.DatagramSocket.receive(DatagramSocket.java:813) at com.xiaomi.miio.MiioLocalAPI.udp_receive(MiioLocalAPI.java:91) at com.xiaomi.miio.MiioLocalAPI.rpc(MiioLocalAPI.java:684) at com.miot.service.b.a.c.a(LanChannel.java:33) at com.miot.service.b.b.executeRequest(GetPropertyTask.java:45) at com.miot.service.common.d.e.run(MiotTask.java:39) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) at java.lang.Thread.run(Thread.java:760) 09-05 14:47:35.851 26073-26130/com.***.app:miot D/LanChannel: onResponse: {"code":-3,"message":"request time out"}

Chgocn commented 5 years ago

更新到sdk3.3.5依然有这个问题。

hanbingwuxie commented 5 years ago

这个已经修复了,3.3.6已更新