IPWorks Bluetooth 2020 C++ Edition

Questions / Feedback?

ServiceInfo Event

Fired once for each service found when calling ListServices.

Syntax

ANSI (Cross Platform)
virtual int FireServiceInfo(BTInfoServiceInfoEventParams *e);
typedef struct {
const char *Name;
const char *ClassId;
const char *Comment;
const char *Protocol;
const char *Address;
int Port; int reserved; } BTInfoServiceInfoEventParams; Unicode (Windows) virtual INT FireServiceInfo(BTInfoServiceInfoEventParams *e);
typedef struct {
LPCWSTR Name;
LPCWSTR ClassId;
LPCWSTR Comment;
LPCWSTR Protocol;
LPCWSTR Address;
INT Port; INT reserved; } BTInfoServiceInfoEventParams;
#define EID_BTINFO_SERVICEINFO 4

virtual INT IPWORKSBT_CALL FireServiceInfo(LPSTR &lpszName, LPSTR &lpszClassId, LPSTR &lpszComment, LPSTR &lpszProtocol, LPSTR &lpszAddress, INT &iPort);

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 C++ Edition - Version 20.0 [Build 7941]