Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
congdanhqx
Posts: 115
Registered: ‎10-22-2012
My Device: Developer
My Carrier: Mobifone

Help with Bluetooth API on BlackBerry 10

[ Edited ]

Hi all,

I'm having a problem with Bluetooth on BlackBerry 10.

I've defined:

#define SPP_SERVICE_UUID "00001101-0000-1000-8000-00805F9B34FB"

I've called:

bt_device_init(bluetoothHelperCallback);
bt_spp_init();

These line of code return 0. But when I call:

const int fd = bt_spp_open(address.toAscii().data(),(char *) SPP_SERVICE_UUID, false);

the returned fd is -1, and errno is 61. I don't known what wrong with my code.

Anyone can help me?



Like my answer if it's helpful. Mark as answer if it help you solve the problem.
Please use plain text.
Developer
congdanhqx
Posts: 115
Registered: ‎10-22-2012
My Device: Developer
My Carrier: Mobifone

Maybe an error of Dev Alpha, Clean and Build, reset the D...

Maybe an error of Dev Alpha, Clean and Build, reset the Device and the app worked,



Like my answer if it's helpful. Mark as answer if it help you solve the problem.
Please use plain text.