[Bluetooth] Fixed issues related to BLE 81/216381/3
authorPiotr Kosko/Engineer/Native/Web API (PLT) /SRPOL/Samsung Electronics <p.kosko@samsung.com>
Thu, 24 Oct 2019 06:59:52 +0000 (08:59 +0200)
committerPiotr Kosko/Engineer/Native/Web API (PLT) /SRPOL/Samsung Electronics <p.kosko@samsung.com>
Thu, 24 Oct 2019 07:57:11 +0000 (09:57 +0200)
commitccdb9235a0e03fd3b1976db6cd2878d0fa3452c9
tree6882a6d033c75289aa08d163124babf707deb071
parent545ee1820674a38f464eb32e3b21b1344551507b
[Bluetooth] Fixed issues related to BLE

[Bug/Fix]
  1. Prevent possible crash in case of invalid data passed from native
  2. Prevent type mismatch exception in JS in case of LE devices advertising
     serviceData.

[Verification] tct passrate 100%
  Checked in chrome console and le device with serviceData.

Change-Id: Iecc9929a77a1acfd1b33eb325ea287011b9a6096
src/bluetooth/bluetooth_api.js
src/bluetooth/bluetooth_le_device.cc