BluetoothConnectMobile

Content Type: Widget
Categories: Utility

Overview

- Objectives: to make mendix mobile application able to connect bluetooth serial device such as scale-weighting, or arduino devices - There are 2 widgets: one more sync all bluetooth devices that near your mobile bluetooth range another one is to sync bluetooth data from which has been paired to mendix

Documentation

Demo url

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.

Releases

Version: 1.0.0
Framework Version: 8.1.1
Release Notes: - Connect to bluetooth serial device via mobile phone