![]() Ensure that you have update the BLE Mini firmware to at least Biscuit-UART_20130313.bin. This plugin was originally developed with Cordova 3.4 using iOS 7.x on an iPhone 5s connecting to a RedBearLab BLEMini. NOTE: Currently iOS only works with RedBear Labs Hardware, Adafruit Bluefruit LE, Laird BL600, and BlueGiga UART services I highly recommend Adafruit's Bluefruit EZ-Link. The code should be generic and work with most hardware. On the Arduino side I test with Sparkfun Mate Silver and the Seeed Studio Bluetooth Shield. Samsung Galaxy Tab 10.1 (GT-P7510) with Android 4.0.4 (see Issue #8).It should support Android-10 (2.3.2) and greater, but I only test with Android 4.x+. Theoretically this code runs on PhoneGap 2.9 and greater. connectFailure: Error callback function, invoked when error occurs or the connection disconnects.Ĭonnect insecurely to a Bluetooth device.Ĭurrent development is done with Cordova 4.2 on Android 5.connectSuccess: Success callback function that is invoked when the connection is successful.macAddress_or_uuid: Identifier of the remote device.The MAC address can optionally surrounded with parenthesis. Windows Phoneįor Windows Phone, connect takes a MAC address of the remote device. Optionally, you can pass an empty string and the plugin will connect to the first BLE peripheral. iOSįor iOS, connect takes the UUID of the remote device. Androidįor Android, connect takes a MAC address of the remote device. ![]() An error message is passed to the failure callback. Failure is called if the connection fails, or later if the connection disconnects. Success will be called when the connection is successful. bluetoothSerial.clearDeviceDiscoveredListenerīnnect(macAddress_or_uuid, connectSuccess, connectFailure) įunction connect connects to a Bluetooth device.There are some sample projects included with the plugin. Note that this plugin's id changed from to cordova-plugin-bluetooth-serial as part of the migration from the Cordova plugin repo to npm. ![]() $ cordova plugin add cordova-plugin-bluetooth-serial
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |