Concern BluetoothDiscoverDevicesSuccessCallback_ondevicedisappeared
TCT test case
Change-Id: I08cdcd6ced3f3c869c2ea7736bdab6291d9020ee
break;
}
}
+
+ if (adapter.discovery_callbacks.ondevicedisappeared)
+ adapter.discovery_callbacks.ondevicedisappeared(address);
};
var handleDeviceUpdated = function(msg) {
obj->InternalPostMessage(picojson::value(o));
break;
}
+ case BT_ADAPTER_DEVICE_DISCOVERY_REMOVED: {
+ o["Address"] = picojson::value(discovery_info->remote_address);
+ o["cmd"] = picojson::value("DeviceRemoved");
+ obj->InternalPostMessage(picojson::value(o));
+ break;
+ }
default:
LOG_ERR("Unknown discovery state callback!");
break;
void BluetoothInstance::OnBondDestroyed(int result, char* remote_address,
void* user_data) {
BluetoothInstance* obj = static_cast<BluetoothInstance*>(user_data);
+
if (!obj) {
LOG_ERR("user_data is NULL!");
return;