[Bluetooth] destroyBonding API : remove device from known_devices array
authorCorentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
Fri, 17 Oct 2014 13:05:55 +0000 (15:05 +0200)
committerCorentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
Fri, 17 Oct 2014 14:16:57 +0000 (16:16 +0200)
commit91508756d08fcf83be08ca0335fa6e92511529b4
tree9444f622076c7ead63f2dfbd8c794549a13ff3ed
parent3833c351debe610a735d89ce243792089e53f46e
[Bluetooth] destroyBonding API : remove device from known_devices array

When remote device is unpaired, known_devices array has to be removed as well
and not just isBonded device property.

Add also an error case to directly returns an error if device to unpair is not in
known_devices array.
bluetooth/bluetooth_api.js