FarmBot 子專案-Camera Commander prototype V0.04
想著想著怎麼做,順手做個 prototype 來確認一下是否可行
Features:
# 1. Support CLI
# 2. start/stop socket command interface
# 3. support socket input command and response
# 4. CLI and socket command can be support at the same time.
python camera_commander_prototype.py
----- FarmBot Camera Commander V0.0.4 -----
FCC>help
Documented commands (type help <topic>):
========================================
help net_open quit r83 stop
FCC>r83
V0.0.4
FCC>net_open
FCC>starting up on localhost port 10000
waiting for a connection...
connection from 127.0.0.1,58884
received:R83
demo code: echo data back to client
V0.0.4
stop
quitFCC>quit
-- 使用 netcat 來測試
echo "R83" | nc localhost 10000
V0.0.4
子專案共筆:
https://hadad.hackpad.com/FarmBot-Camera-Commander-BwHqQCkX…
code:
https://github.com/…/verifica…/camera_commander_prototype.py
哈爸
翻譯年糕