lsf/sdk/RaspberryPi/README.md

46 lines
895 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 硬件端树莓派SDK说明
#### 一、运行环境
- Python 3.7.2 (其他python3的版本一般也可以)
- 开发板树莓派4b没有加入硬件相关代码安装好python3环境win下linux下都能运行
- 库 需要安装库
1. mqtt库
```
pip install paho-mqtt
```
2. ase加密库
```
# 前面两个卸载命令是为了防止一些安装环境问题
pip uninstall crypto
pip uninstall pycryptodome
pip install pycryptodome
```
3. 报错缺少xx库命令
```
pip install xx
```
#### 二、运行程序
```
python3 main_sdk.py
# 备注程序运行依赖aes.py文件保证该文件和main_sdk.py在同一目录
```
#### 三、开发参考资料:
- [Eclipse Paho MQTT Python Client 使用手册](https://www.cooooder.com/archives/20210303)
- 更多参考资料,下载目录中的文本文件查看