8.4.4 Handle Enumeration Not Reset After Clearing GATT Services
The PZ command is used to clear out an existing GATT service. The PS and PC commands are used to create service and characteristics respectively. If an existing service is cleared using PZ, and then followed immediately by PS and PC commands, the handle values will enumerate starting from last entry in previous service. In order to reset enumeration handle for services, the module must be rebooted using R,1. In most cases this is not an issue. In some cases, known (static) characteristic handle values are referenced by a script or remote Bluetooth LE Client. Any applications that use static handles should issue the R,1 command immediately after PZ command, and prior to any PS and PC commands. This issue will be fixed in a future firmware release.
