代码拉取完成,页面将自动刷新
ionic
的蓝牙通讯框架ionic
: http://ionicframework.com/
bluetoothserial
插件 : https://github.com/don/BluetoothSerial
ngCordova
: http://ngcordova.com/
bluetoothHelper
封装bluetoothSerial
的enable
、list
等细节,便于其他模块使用
init
function
deviceName
: string
| 要连接的蓝牙名称promise
| 连接成功时resolve,失败时rejectdeviceName
,最后进行连接。未开启蓝牙、未配对或者连接失败都将导致rejectsubscribe
function
fn
: function
| 当蓝牙收到数据时要调用的函数length
: number
| 缓冲的字节长度。在缓冲区长度达到length
时才调用fn
write
function
data
: ArrayBuffer
or Uint8Array
or int[]
or string
| 要向蓝牙发送的数据promise
| 发送成功时resolve,失败时rejectdisconnect
function
promise
| 断开成功时resolve,失败时reject你可以在登录后,发表评论
代码活跃度
社区活跃度
团队健康
流行趋势
影响力
:与代码提交频次相关
:与项目和用户的issue、pr互动相关
:与团队成员人数和稳定度相关
:与项目近期受关注度相关
:与项目的star、下载量等社交指标相关
仓库评论 ( 0 )