[Bluetooth] Clear all GATT data after unregistering all services 73/244473/3
authorPawel Wasowski <p.wasowski2@samsung.com>
Wed, 16 Sep 2020 10:03:50 +0000 (12:03 +0200)
committerPiotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics <p.kosko@samsung.com>
Mon, 21 Sep 2020 08:14:15 +0000 (10:14 +0200)
commit245ff1f6008dd909c7544b3427c8e372d6612f0b
treecfb49005ffa58e7299fe1b4f97ab2e471118f055
parent53f0ea12005f6ef09467fc7ae77d6b0a8aba1e65
[Bluetooth] Clear all GATT data after unregistering all services

This commit clears_id->gatt_h and _id->callback names mappings from
BluetoothGATTServerService when the server is stopped.

[Verification] This change is tested together with the commit
implementing reregistration of read/write callbacks and works fine.

Change-Id: I4c16674f4856bb1fa74f4db74b6bbe9119f3b29f
Signed-off-by: Pawel Wasowski <p.wasowski2@samsung.com>
src/bluetooth/bluetooth_gatt_server.cc
src/bluetooth/bluetooth_gatt_server_service.cc
src/bluetooth/bluetooth_gatt_server_service.h