The advertising example was sending the wrong payload because during battery level update the data builder being reused was the one used for scan response payload instead of the normal payload. This fixes it by reversing the order of setting the payloads. Added more comments to explain this.
The advertising example was sending the wrong payload because during battery level update the data builder being reused was the one used for scan response payload instead of the normal payload. This fixes it by reversing the order of setting the payloads. Added more comments to explain this.