Android串口开发,基于官方的android-serialport-api增加支持设置奇偶校验|数据位|停止位_new serialportplus-CSDN博客

网站介绍:文章浏览阅读1.5k次,点赞2次,收藏3次。SerialPortPlus项目地址Android串口开发,基于谷歌官方的android-serialport-api增加支持设置奇偶校验、数据位和停止位使用步骤第一步:app/build.gradle进行依赖implementation 'com.azhon:serialport:1.0.0'第二步:打开串口1.打开串口try { SerialPortPlus serialPortPlus = new SerialPortPlus("/dev/ttyMT2", 9600); _new serialportplus