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
Posts: 188
Registered: ‎07-19-2012
My Device: Z10 LE
My Carrier: Three
Accepted Solution

Bluetooth functionality failing with ESRVRFAULT error

Hi everyone.

 

After getting my app to compile with Bluetooth support yesterday, I'm now finding it difficult to execute any bluetooth-related functions. Almost any bluetooth-related function I try to perform such as bt_ldev_set_power(true); when the Bluetooth is powered off or bt_disc_start_inquiry(BT_INQUIRY_GIAC); always return an errno value of 312 (ESRVRFAULT).

 

This suggests that the call is being blocked at Kernel level. I can't see any special permissions in my bar-descriptor.xml file that could be blocking it, so does anyone have any ideas as to why this is going wrong/



Did this post help you? If so, please make sure to "like" it!
Developer
Posts: 188
Registered: ‎07-19-2012
My Device: Z10 LE
My Carrier: Three

Re: Bluetooth functionality failing with ESRVRFAULT error

Turns out I made a big mistake. Forgot to call bt_device_init() - all working now!



Did this post help you? If so, please make sure to "like" it!