Hello,
Welcome to Microsoft Q&A!
How to send more than 31 bytes custom data for a gatt server by start an advertisement?
Please use the following API:
1) To check if feature is supported on the system the App is running on: BluetoothAdapter.IsExtendedAdvertisingSupported Property (Windows.Devices.Bluetooth) - Windows UWP applications | Microsoft Learn
2) Enabling it: BluetoothLEAdvertisementPublisher.UseExtendedAdvertisement Property (Windows.Devices.Bluetooth.Advertisement) - Windows UWP applications | Microsoft Learn
Essentially, the app needs to dynamically verify if the system running the app has support for such a feature before enabling it.
Also, for the GATT server API, step 2 above should not be necessary as long as the feature is supported (checked via step 1)
Thank you.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.