BLE pair message with RAK11720

Hello, dear RAK Forum!

I hope you are well. I’m using a RAK11720 with RUI3 4.1.1. I’m developing an app with the BLE built-in my module, but when I try to connect to my MCU, my smartphone shows pair message.

If I deny the request, the MCU aborts the connection. If I accept the message, the connection works fine. I know that is a bonded request.

Is there any possible to avoid the sync & link (bonded) request? I test others boards based on AMA3B1KK-KBR and doesn’t request this. I guess is a firmware modification.

Best regards!

Dabliu

Welcome back to the forum @Dabliu

It is built-in feature of RUI3 and you cannot change it without changing the sources.

RUI3 source code is open source, you can find it in RAK-APOLLO3-RUI

1 Like

Thanks for your response, dear @beegee.

Can you give me a hint where I can make the modification? I was reviewing the source code today and did some tests, but I did not get a satisfactory result.

This module is wonderful!

Thank you very much!

@beegee can you share more info, please? I really stuck with this problem…

@Dabliu
Are you using a custom service? Then you can try hrmc.setPermission(RAK_SET_OPEN); for your custom characteristic (replace hrmc with your custome characteristic)

For the BLE Serial, try api.ble.uart.setPermission(RAK_SET_OPEN); before you do Serial6.begin()