Widora-NEO

Widora-NEO的详细介绍

创作者:midaszhou | 更新日期:2019-04-20 | 在线时长:444天
32M Widora-NEO  OpenWRT C Bigiot_Client https://github.com/widora/ctest/blob/master/wegi/test_bigiot.c

32M Widora-NEO  OpenWRT cjson Bigiot_Client

 https://github.com/widora/ctest/blob/master/wegi/test_bigiot.c


评论:共10条

贝壳物联 评论于:2016-06-26 20:30:40
这个交互做的不错,还能累计
midaszhou 评论于:2017-05-21 07:47:58
------------ 在crontab中增加了一个定时监控shelll脚本,如果发现程序退出,自动重启它。 -------------

#!/bin/sh
a=`ps | grep python | grep client.py `

if [ "$a" ]
then
echo "Python-client.py is running!"

else
echo "Python-client.py not running! Try to restart..."
screen -dmS BIGIOT /home/client.py
fi
贝壳物联 回复于:2017-06-11 06:20:50
回复 @midaszhou:这个好,小贝也试试这个
midaszhou 评论于:2017-05-24 08:04:56
不时会死在这步, 不清楚怎么回事.......
.......
2017-05-23 22:03:07
count_try_keeponline=1
send msg to sustain conncetion... sendall() succeed!
Receive msg={"M":"checked"}
Keeponline action is confirmed by the server!
Finish processing msg.
2017-05-23 22:03:47
count_try_keeponline=1
send msg to sustain conncetion... sendall() succeed!
Receive msg={"M":"checked"}
Keeponline action is confirmed by the server!
Finish processing msg. (停止在这步, ps查看 python client.py程序后台并未退出)
midaszhou 评论于:2017-06-02 11:20:05
原来死在 ConnectSocket(host,port) 中

......
[Errno 148] No route to host
Fri Jun 2 09:25:29 CST 2017
Err: ConnectSocket(host,port)
Fri Jun 2 09:25:31 CST 2017
[Errno 150] Operation now in progress
Fri Jun 2 09:25:31 CST 2017
Err: ConnectSocket(host,port)
Fri Jun 2 09:25:33 CST 2017
[Errno 149] Operation already in progress
Fri Jun 2 09:25:33 CST 2017
Err: ConnectSocket(host,port)
Fri Jun 2 09:25:35 CST 2017
midaszhou 评论于:2017-06-02 11:20:05
原来死在 ConnectSocket(host,port) 中

......
[Errno 148] No route to host
Fri Jun 2 09:25:29 CST 2017
Err: ConnectSocket(host,port)
Fri Jun 2 09:25:31 CST 2017
[Errno 150] Operation now in progress
Fri Jun 2 09:25:31 CST 2017
Err: ConnectSocket(host,port)
Fri Jun 2 09:25:33 CST 2017
[Errno 149] Operation already in progress
Fri Jun 2 09:25:33 CST 2017
Err: ConnectSocket(host,port)
Fri Jun 2 09:25:35 CST 2017
midaszhou 评论于:2017-06-04 09:13:24
经常会卡死在socket的recv()中.......
悠然恍若隔世梦 评论于:2017-06-07 18:46:53
可以简单说明一下这个如何运行吗?我也想了解一下!~
midaszhou 回复于:2017-06-08 10:18:10
回复 @悠然恍若隔世梦: 我用百度语音来转换成mp3的,可以参考这里:http://sns.widora.io/topic/78/widora-neo%E5%BA%94%E7%94%A8%E7%99%BE%E5%BA%A6%E5%9C%A8%E7%BA%BF%E8%AF%AD%E9%9F%B3%E5%90%88%E6%88%90%E5%92%8C%E8%AF%86%E5%88%AB
midaszhou 评论于:2017-06-23 09:51:51
if len(data)>500: #---in case recv() trapped in dead loop
print "-----Data length =%d bytes!"%len(data)
keepOnline()
keepCheckin()
评论支持使用[code][/code]标签添加代码