科尔多瓦BLE Evothings通知

时间:2019-06-05 18:54:32

标签: bluetooth apache-cordova

尝试使用Cordova + Evothings通过BT05 BLE模块连接到arduino来创建应用程序时,我有些失落。最终应用程序必须连续绘制来自arduino的数据图。

我已下载此示例作为开始: https://github.com/hammadtq/Evothings-Demo-Apps/tree/master/hm10-arduino-ble

并在以下使用了这些: https://github.com/evothings/cordova-ble/tree/master/examples/webbluetooth/tisensortag https://github.com/evothings/evothings-examples/tree/master/examples/arduino-ble/app

我想保持设备的连接状态,因此:向arduino发送命令(写入BT05),在应用程序上接收通知,并从BT05读取值。

我的问题: 是否可以将evothings.arduinoble和evothings.ble混合? 如何启用BT05通知? evothings.ble.enableNotification?与AT + NOTI一样吗?或者,例如,我可以做类似下面一行的事情吗?

app.device && app.device.writeDataArray(new Uint8Array([1]),'0000ffe1-0000-1000-8000-00805f9b34fb');

最诚挚的问候,

0 个答案:

没有答案