BluetoothConnectMobile
Overview
Documentation
Description
Enable bluetooth connection between mendix mobile application to bluetooth serial device
Typical usage scenario
add cordova plugin to your mendix mobile configuration, see on the picture
Features and limitations
- List all bluetooth device nearby
- Connect bluetooth serial via mac address
Dependencies
- Cordova Plugin
Installation
Please see the picture
if the association is different from my picture, please modify the code from github
then run : gulp build
then add the widget.mpk file to your project again
Configuration
as in the picture
Known bugs
sometime, but it is rarely if the connection is weak, there will be success connection, but you get empty data.
I have add a call back promise time out for connect and read data, to handle this lost connection. any bluetooth serial device will take time to read data, and async/await should use in this case.
bluetoothserial.subscribe() function is not work, i think this is about cordova core during args.