@iotize/device-com-ble.cordova 3.5.1 → 3.5.2

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": "IoTize <contact@iotize.com>",
3
3
  "license": "MIT",
4
4
  "name": "@iotize/device-com-ble.cordova",
5
- "version": "3.5.1",
5
+ "version": "3.5.2",
6
6
  "cordova": {
7
7
  "id": "@iotize/device-com-ble.cordova",
8
8
  "platforms": [
@@ -509,6 +509,7 @@ public class BLECom extends CordovaPlugin {
509
509
  executeAsync(() -> {
510
510
  try {
511
511
  finalPeripheral.bleConnect();
512
+ finalPeripheral.setConnectionStatus(ConnectionState.CONNECTED);
512
513
  pluginResponse.newResult("CONNECTED");
513
514
  } catch (Exception e) {
514
515
  pluginResponse.error(BLEComError.connectionError(e));