有些设备,在 onServicesDiscovered 回调中,返回的 status 是 129,133时,在关闭,重新打开蓝牙,无法解决问题时,建议更换设备,这些问题大多是设备底层gatt 服务异常,重新连接,进行discoverServices(); 1//出现129,133时。关闭蓝牙2mBluetoothAdapter.disable();3//关闭蓝牙后,延时1s,重新开启蓝牙4mBluetoothAdapter.enable...
问安卓停止查找BLE设备: onClientRegistered() - status=133 clientIf=0EN本作者是一位安卓初学者,之...
I am facing the ble status = 133 in android BluetoothGatt . the log follow: D/BluetoothGatt(16840): connect() - device: F0:13:C3:80:AA:C6, auto: false D/BluetoothGatt(16840): registerApp() D/BluetoothGatt(16840): registerApp() - UUID=653...
2020-01-03 17:06:34,833[17831-17831]BT.Con.BC curGatt:android.bluetooth.BluetoothGatt@b7d8d57 2020-01-03 17:07:04,837[17831-17901]BT.Con.BC onConnectionStateChange device:FD:18:FC:A2:EF:96,status:133,newState:0,isReleased:false,isCancel:false 2020-01-03 17:07:04,838[17831-17901...
问onCharacteristicWrite中的BLE网关状态133EN本文旨在提供一个方便没接触过Android上低功耗蓝牙(Bluetooth ...
i(TAG, "onConnectionStateChange status: " + status + ", newState: " + newState); /** * 手机(主机)主动断开连接回调值有:status: 0, newState: 0 * 发起Gatt操作失败回调值有:status: 133, newState: 0 * 设备(从机)主动断开连接回调值有:status: 8, newState: 0 * ... */ if (new...
public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) { //gatt:GATT客户端 //status:此次操作的状态码,返回0时代表操作成功,返回其他值就是各种异常 //newState:当前连接处于的状态,例如连接成功,断开连接等 //当连接状态改变时触发此回调 ...
descriptor.setValue(BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE);//若开启监听成功则会回调BluetoothGattCallback中的onDescriptorWrite()方法,处理方式如下:@OverridepublicvoidonDescriptorWrite(BluetoothGatt gatt, BluetoothGattDescriptor descriptor,intstatus){if(status == BluetoothGatt.GATT_SUCCESS) {//开启监...
onClientConnectionState() - status=133 clientIf=5 device=F2:XX:XX:XX:XX:XX 看到133错误,首先是各种百度、论坛、博客找,好多大牛都说是因为上次蓝牙连接没有close()释放资源的原因。然而我根据大牛们的建议去尝试修改,然而并没什么卵用。 素质疑问三连:为什么重启APP不会出现问题,而重启手机再打开APP就回出...
public void servicesDiscoveredEvent(int status) { // 外围设备服务发生更新触发的回调。 if (status == BlePeripheralDevice.OPERATION_SUCC) { HiLog.info(label, "servicesDiscoveredEvent OPERATION_SUCC"); List<GattService> services = mPeripheralDevice.getServices(); // 获取Service成功后获服务列表 ...