react-native-ble-manager 8.4.0 → 8.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -777,7 +777,7 @@ async function connectAndPrepare(peripheral, service, characteristic) {
|
|
|
777
777
|
({ value, peripheral, characteristic, service }) => {
|
|
778
778
|
// Convert bytes array to string
|
|
779
779
|
const data = bytesToString(value);
|
|
780
|
-
console.log(`
|
|
780
|
+
console.log(`Received ${data} for characteristic ${characteristic}`);
|
|
781
781
|
}
|
|
782
782
|
);
|
|
783
783
|
// Actions triggereng BleManagerDidUpdateValueForCharacteristic event
|
|
@@ -492,6 +492,8 @@ public class Peripheral extends BluetoothGattCallback {
|
|
|
492
492
|
|
|
493
493
|
readRSSICallback = null;
|
|
494
494
|
}
|
|
495
|
+
|
|
496
|
+
completedCommand();
|
|
495
497
|
}
|
|
496
498
|
|
|
497
499
|
private String bufferedCharacteristicsKey(String serviceUUID, String characteristicUUID) {
|
|
@@ -745,7 +747,7 @@ public class Peripheral extends BluetoothGattCallback {
|
|
|
745
747
|
if (isConnected()) {
|
|
746
748
|
readRSSICallback = callback;
|
|
747
749
|
if (! gatt.readRemoteRssi()) {
|
|
748
|
-
|
|
750
|
+
readRSSICallback = null;
|
|
749
751
|
sendBackrError(callback, "Read RSSI failed");
|
|
750
752
|
completedCommand();
|
|
751
753
|
}
|