IPWorks Bluetooth 2020 C++ Edition

Questions / Feedback?

AuthRequest Event

Fired when a device requests authentication.

Syntax

ANSI (Cross Platform)
virtual int FireAuthRequest(BTInfoAuthRequestEventParams *e);
typedef struct {
const char *Address;
const char *Name;
char *Password;
int Accept; int reserved; } BTInfoAuthRequestEventParams; Unicode (Windows) virtual INT FireAuthRequest(BTInfoAuthRequestEventParams *e);
typedef struct {
LPCWSTR Address;
LPCWSTR Name;
LPWSTR Password;
BOOL Accept; INT reserved; } BTInfoAuthRequestEventParams;
#define EID_BTINFO_AUTHREQUEST 1

virtual INT IPWORKSBT_CALL FireAuthRequest(LPSTR &lpszAddress, LPSTR &lpszName, LPSTR &lpszPassword, BOOL &bAccept);

Remarks

This event fires when a device requests authentication. This will only fire if StartAuthMonitor has been previously called.

Address holds the Bluetooth address. For instance "00:02:72:C6:64:B7".

Name is the name of the device.

Password defines the password to be sent back to the device. This parameter will always be empty when the event fires and must be set within the event.

Accept specifies whether to accept the request. The default value is False. This must be set to True within this event to accept the request.

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