另外登入 Yun
vi bridge_get.py
import sys
sys.path.insert(0, '/usr/lib/python2.7/bridge/')
from bridgeclient import BridgeClient as bridgeclient
client = bridgeclient()
value = client.get("D13")
print value
python bridge_get.py
http://arduino.local/arduino/mode/13/output
http://arduino.local/arduino/digital/13/1
http://arduino.local/arduino/digital/13/
Understanding Arduino Yún's bridge
http://arduino.local/data/get
http://arduino.local/data/get/D13
http://arduino.local/data/put/D13
https://github.com/arduino/YunWebUI/tree/master/www/keystore_manager_example
沒有留言:
張貼留言