IPWorks BLE 2020 ActiveX Edition

Questions / Feedback?

Discovered Event

Fired when the control discovers a service, characteristic, or descriptor.

Syntax

Sub bleclientcontrol_Discovered(GattType As Integer, ServiceId As String, CharacteristicId As String, DescriptorId As String, Uuid As String, Description As String)

Remarks

This event is fired during any discovery process to indicate that the control has discovered a service, characteristic, or descriptor. Discovery processes take place whenever Discover, DiscoverServices, DiscoverCharacteristics, or DiscoverDescriptors is called.

GattType indicates what type of GATT object was discovered:

  • 0 - Service
  • 1 - Characteristic
  • 2 - Descriptor

Uuid and Description are the UUID and Bluetooth SIG user-friendly name (if one is defined) of the discovered service, characteristic, or descriptor.

When a service is discovered:

  • ServiceId is the Id of the newly discovered service.
  • CharacteristicId is empty.
  • DescriptorId is empty.

When a characteristic is discovered:

  • ServiceId is the Id of the previously discovered service which owns the newly discovered characteristic.
  • CharacteristicId is the Id of the newly discovered characteristic.
  • DescriptorId is empty.

When a descriptor is discovered:

  • ServiceId is the Id of the previously discovered service which owns the previously discovered characteristic.
  • CharacteristicId is the Id of the previously discovered characteristic which owns the newly discovered descriptor.
  • DescriptorId is the Id of the newly discovered descriptor.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks BLE 2020 ActiveX Edition - Version 20.0 [Build 8158]