清单屏幕会话会导致错误-Raspberry Pi
我通过MacBook上的 ssh 连接到覆盆子Pi。在SSH中,我使用屏幕命令创建两个壳的独立实例,一个实例来监视传感器,一个实例来流式摄像头。当前,传感器程序需要温度和湿度读数,并在1602 LCD上显示此时间。
由于某种原因,有时传感器程序崩溃了,这仅在使用屏幕命令以来才发生多个实例。屏幕运行良好,可以分离,重命名和重新连接,并且问题直到我列出屏幕才会发生,在这一点上,传感器程序遇到错误 - 但是,网络摄像头计划似乎继续运行。
特定错误代码为:
typeError:float()参数必须是字符串或数字,而不是“ nontype”
我假设当传感器(DHT22)未拾取成功读数时,会发生此错误,因此无法修改空数据。但是,我不明白为什么仅在使用屏幕和列表命令时才会发生此错误?
I am connected to a Raspberry Pi through SSH on my MacBook. Within the SSH, I have used the screen command to create two detached instances of the shell, one instance to monitor sensors, and instance one to stream a webcam. Currently, the sensor program takes temperature and humidity readings, displaying this on a 1602 LCD, along with the time.
For some reason there are occasions when the sensor program crashes, and this has only occurred since utilising the screen command, with multiple instances. The screens run fine and can be detached, renamed, and re-attached, and issues do not occur until I list screens, at which point the sensor program encounters an error - however, the webcam program seems to continue running.
The specific error code is:
TypeError: float() argument must be a string or a number, not 'NoneType'
I assume this error occurs when the sensor (DHT22) has not picked up a successful reading, thus cannot modify the null data. However, I do not understand why this error only occurs when using the screen and list command?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论