MarsIoT
MarsIoT
树莓派开机时自动运行SDK

为了树莓派开机时自动运行,在/etc/rc.local中添加:/home/pi/marsiot_sdk_python/main.py /home/pi/marsiot_sdk_python/ &

rclocal

注意树莓派要打开如下选项,否则树莓派开机后不会等待网络连接,会导致MarsIoT接入失败:

sudo raspi-config → Boot options → Wait for Network at Boot)

rasp-config-1
rasp-config-2