/** * Creates new Read Battery Level request. The first found Battery Level characteristic value * from the first found Battery Service. If any of them is not found, or the characteristic * does not have the READ property this operation will not execute. * * @return The new request. * @deprecated Use {@link #newReadRequest(BluetoothGattCharacteristic)} with * BatteryLevelDataCallback from Android BLE Common Library instead. */ @NonNull @Deprecated public static ReadRequest newReadBatteryLevelRequest() { return new ReadRequest(Type.READ_BATTERY_LEVEL); }
/** * Creates new Read Descriptor request. The request will not be executed if given descriptor * is null. After the operation is complete a proper callback will be invoked. * * @param descriptor descriptor to be read. * @return The new request. * @deprecated Access to this method will change to package-only. * Use {@link BleManager#readDescriptor(BluetoothGattDescriptor)} instead. */ @Deprecated @NonNull public static ReadRequest newReadRequest(@Nullable final BluetoothGattDescriptor descriptor) { return new ReadRequest(Type.READ_DESCRIPTOR, descriptor); }
/** * Creates new Read Characteristic request. The request will not be executed if given * characteristic is null or does not have READ property. * After the operation is complete a proper callback will be invoked. * * @param characteristic characteristic to be read. * @return The new request. * @deprecated Access to this method will change to package-only. * Use {@link BleManager#readCharacteristic(BluetoothGattCharacteristic)} instead. */ @Deprecated @NonNull public static ReadRequest newReadRequest( @Nullable final BluetoothGattCharacteristic characteristic) { return new ReadRequest(Type.READ, characteristic); }