02-09-2013 04:02 PM - edited 02-09-2013 05:16 PM
Hi
Function hostMode() (https://developer.blackberry.com/cascades/referenc
default 9000 void QtMobility::QBluetoothLocalDevicePrivate::controlR
(QtMobility:
psResult) "radio is not in disabled state"
One have use native bt_ldev_get_power() that return correct Bluetooth state.
Bug was found using BlackBerry 10 Dev Alpha Native SDK 10.0.10.261 on Dev Alpha with firmware 10.9.10.35
Some code for testing :
if (__pBtDevice==NULL) {
QList<QtMobility::QBluetoothHostInfo> devList= QtMobility::QBluetoothLocalDevice::allDevices();
if (devList.count()!=0){
qDebug()<<devList.count();
__pBtDevice= new QtMobility::QBluetoothLocalDevice(devList.at(0).ge tAddress(), this);
}
}
bt_device_init(NULL) ;
qDebug()<<"host mode="<<__pBtDevice->hostMode()<<" is valid="<<__pBtDevice->isValid()<<" native_bb_power_mode="<<bt_ldev_get_power();
bt_device_deinit();
__pBtDevice->powerOn();
02-11-2013 01:48 PM
Please create an issue at https://www.blackberry.com/jira
02-11-2013 04:23 PM
02-11-2013 04:24 PM
Thank you!