services
The list of services (GATT profile) which have been discovered on the remote peripheral.
The list contains a tree of DiscoveredServices, DiscoveredCharacteristics and DiscoveredDescriptors. These types all hold strong references to the underlying platform type, so no guarantees are provided on the validity of the objects beyond a connection. If a reconnect occurs, it is recommended to retrieve the desired object from services again. Any references to objects obtained from this tree should be cleared upon disconnect or disposal (when Peripheral is cancelled).
Return
discovered services, or null
until services have been discovered.