On iOS - you need to advertise as well as create a gatt server
Services
Services are nothing more than categories in the overall perspective of BluetoothLE. You should be aware that
you must setup all characters & descriptors that belong to a service BEFORE starting advertising or adding a service
to a running server!
You should always know your service UUID for future client consumption!
From a functionality perspective, there is not a lot you do with services
General Setup
After creating your server instance and a service, you can do the following:
You should always assign a known GUID ID to your characteristic in order for your GATT service to be consumed by a client.
Below are examples of a basic read/write characteristic and a notification characteristic setup
Setup a Service
These are the heart and soul of BLE. This is where data is exchanged between client & server
Managed Characteristic
A managed characteristic as shown below, respresents a single characteristic but multiple operations
To register your managed characteristic, during your host building operation (ie. MauiProgram.cs), add the following:
And lastly to start/stop your managed characteristic