我正在使用树莓派3和Google IOT来操作一些继电器,以控制灌溉系统上的阀门。该系统使用互联网获取天气预报以确定使用多少水,并使用NanoHTTPD提供用户界面。
系统运行良好,但偶尔会出现错误,导致整个系统停止工作。从日志文件中可以看到:
05-04 05:26:14.677 737-1077/com.google.android.gms.persistent W/Conscrypt: Could not set socket write timeout:
05-04 05:26:14.678 737-1077/com.google.android.gms.persistent W/Conscrypt: java.lang.reflect.Method.invoke(Native Method)
com.google.android.gms.org.conscrypt.Platform.setSocketWriteTimeout(:com.google.android.gms@11973330:13)
05-04 05:26:14.798 737-1077/com.google.android.gms.persistent W/Conscrypt: Could not set socket write timeout:
05-04 05:26:14.799 737-1077/com.google.android.gms.persistent W/Conscrypt: java.lang.reflect.Method.invoke(Native Method)
com.google.android.gms.org.conscrypt.Platform.setSocketWriteTimeout(:com.google.android.gms@11973330:13)
05-04 05:26:14.914 737-1077/com.google.android.gms.persistent W/GLSUser: [AppCertManager] IOException while requesting key:
java.io.IOException: Invalid device key response.
at fmk.a(:com.google.android.gms@11973330:12)
at fmk.a(:com.google.android.gms@11973330:64)
at fmi.a(:com.google.android.gms@11973330:8)
at fme.a(:com.google.android.gms@11973330:1)
at fmd.a(:com.google.android.gms@11973330:10)
at com.google.android.gms.auth.account.be.legacy.AuthCronChimeraService.b(:com.google.android.gms@11973330:7)
at ers.call(:com.google.android.gms@11973330:3)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at kfr.run(:com.google.android.gms@11973330:26)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at kku.run(Unknown Source:7)
at java.lang.Thread.run(Thread.java:764)
我希望你能给我一些提示,告诉我如何阻止这种情况发生。
谢谢。