IPWorks Bluetooth 2020 .NET Edition

Questions / Feedback?

ServiceInfo Event

Fired once for each service found when calling ListServices.

Syntax

public event OnServiceInfoHandler OnServiceInfo;

public delegate void OnServiceInfoHandler(object sender, BtinfoServiceInfoEventArgs e);

public class BtinfoServiceInfoEventArgs : EventArgs {
  public string Name { get; }
  public string ClassId { get; }
  public string Comment { get; }
  public string Protocol { get; }
  public string Address { get; }
  public int Port { get; }
}
Public Event OnServiceInfo As OnServiceInfoHandler

Public Delegate Sub OnServiceInfoHandler(sender As Object, e As BtinfoServiceInfoEventArgs)

Public Class BtinfoServiceInfoEventArgs Inherits EventArgs
  Public ReadOnly Property Name As String
  Public ReadOnly Property ClassId As String
  Public ReadOnly Property Comment As String
  Public ReadOnly Property Protocol As String
  Public ReadOnly Property Address As String
  Public ReadOnly Property Port As Integer
End Class

Remarks

This event fires once for each service found when calling ListServices.

Name is the name of the service.

ClassId is the service class Id (UUID).

Comment holds a comment (if any).

Protocol specifies the protocol. Possible values are "RFCOMM" and "L2CAP".

Address is the address of the service. For instance "00:02:72:C6:64:B7".

Port is the port number on which the service is listening.

Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks Bluetooth 2020 .NET Edition - Version 20.0 [Build 7941]