主控板
|
Basra主控板(兼容Arduino Uno)
|
MixGo(Esp32芯片)主控板
|
|
扩展板
|
Bigfish2.1扩展板
|
通信
|
WiFi无线路由器
|
2510通信转接板
|
|
电池
|
7.4V锂电池
|
其它
|
摄像头、安卓手机
|
import mixiot import onenet import time def sub_cb(topic, msg): if msg == 'on'.encode("utf-8"): pass if msg == 'off'.encode("utf-8"): pass mixiot.wlan_connect('robottime','aaronisfromcug') c = onenet.init_MQTT_client('521931891', '183.230.40.39', '201315', 'TqdRIdejslc0K6p==gYgoqtVLK0=', 'XBCRobot', sub_cb) while True: time.sleep_ms(500) c.check_msg()