我使用的uni-app <template> <view class="bluetooth"> <!-- 发送数据 --> <view class="send" v-if="send_data_onoff"> <view class="uni-textarea"> <textarea placeholder-style="color:#F76260" v-model="send_data_list" placeholder="请输入发送数据"/> <view @tap="send_data" class="fasong">发送</view> </view> </view> <!-- 没有匹配的蓝牙设备 --> <view class="no_match_bluetooth_list" v-if="no_match_list.length!=0"> <view class="h1">已搜索的蓝牙:</view> <block v-for="(item,index) in no_match_list" :key="index"> <view class="uni-list" @tap="search_bluetooth(item.SN)"> <view class="uni-list-cell" hover-class="uni-list-cell-hover"> <view class="uni-list-cell-navigate uni-navigate-right uni-media-list "> <view class="uni-media-list-body"> <view>蓝牙名称:{ {item.name}}</view> <view>SN:{ {item.SN}}</view> </view> </view> </view> </view> </block> </view> <!-- 已匹配的蓝牙设备 --> <view class="no_match_bluetooth_list" v-if="match_list.length!=0"> <view class="h1">已匹配的蓝牙:</view> <block v-for="(item,index) in match_list" :key="index"> <view class="uni-list" @tap="print(item.SN)"> <view class="uni-list-cell" hover-class="uni-list-cell-hover"> <view class="uni-list-ce
vue app混合开发蓝牙串口连接(报错java.io.IOException: read failed, socket might closed or timeout, read ret: -1;a...
最新推荐文章于 2023-07-28 09:24:13 发布
本文介绍了在Vue应用中进行蓝牙串口连接的开发过程,并针对可能出现的java.io.IOException错误提供了解决方案,建议遇到问题的开发者可以尝试使用蓝牙开发助手作为服务端来排查问题。
摘要由CSDN通过智能技术生成