需求:\
- python3.8
- peewee:
pip install peewee
- 配置主机$IP$地址与端口
在./config/server.py
中配置- ip:目标服务器地址
- port:目标服务器端口
- 在项目目录打开命令行,运行服务端
python server_start.py
- 配置服务端$IP$地址与端口
在./config/client.py
中配置- ip:目标服务器地址
- port:目标服务器端口
- 配置客户端名称
在./module/client/client.py
第23
行配置 - 在项目目录打开命令行,运行服务端
python client_start.py
本项目的目的是让用户在忘记通讯的时候实现通讯,将复杂的通讯流程简化为简单的文件读取操作,用户不需要关心通讯过程的具体实现
目前只支持amr客户端,在
在./config/client.py
中配置
- e_type:设备类型
- e_number: 设备编号
向./storage/db/sqlite/dhblab_meta
数据库文件中对应与设备类型e_type
表与表中对应e_number
的行中写入需要发送的数据内容
从./storage/db/sqlite/dhblab_meta
数据库文件中读取数据内容