[Bluetooth Serial Plugin] Send Pairing Code

Forge Component
(7)
Published on 2018-10-29 by João Barata
7 votes
Published on 2018-10-29 by João Barata

Hi everyone,

I would like to send a pairing code when I connect to a Bluetooth device. 

Can someone tell me how I can do this? What do I need to change in the JS function?

Best regards,

Richard

Richard Aben wrote:

Hi everyone,

I would like to send a pairing code when I connect to a Bluetooth device. 

Can someone tell me how I can do this? What do I need to change in the JS function?

Best regards,

Richard

Hello Richard, the plugin doesn't handle the pairing process. That is handled by the operating system Android or iOS. When trying to connect for the first time you will be prompted to pair the device and you will be able to send in the pairing code.

If that doesn't work you can always use the Bluetooth menu of the device to pair the devices prior to using them with your application.


Regards,