烧瓶序列
在Flask中接收和发送串行数据
xx
安装
下载:
git clone https://github.com/RedFalsh/flask-serial.git
安装:
python setup.py install
点安装
pip install flask-serial
用法
from flask import Flask
from flask_serial import Serial
app = Flask ( __name__ )
app . config [ 'SERIAL_TIMEOUT' ] = 0.2
app . config [ 'SERIAL_PORT' ] = 'COM2'
app . config [ 'SERIAL_BAUDRATE' ] = 115200
app . config [ 'SERIAL_BYTESIZE' ] = 8
app .
2022-05-08 09:57:45
8KB
Python
1