Bluetooth QuickStart Kit Version 1.0 - User’s Guide Page 60
Copyright 2004-2005 © Embedded Artists AB
tBool linkClose( tPppDev* pDev )
Execute the close command string. If the close command string contains timeouts (@w
or @r) this function will return before the command string has been completely
processed. This function will be called by LCP when the this-layer-finished event is
triggered in LCP.
Parameters:
[in] pDev - device structure
Returns:
TRUE if the processing started; FALSE if a command string is already being
processed.
B.5.8 linkDisconnect
void linkDisconnect( tPppDev* pDev )
This function should be called when the link is disconnected. The LCP layer will be
notified about the disconnection.
Parameters:
[in] pDev - device structure
B.5.9 pppLocalUser
void pppLocalUser( tPppDev* pDev, tU8* pUser, tU8* pPass )
Register a local user/password. Only one user can be registered per PPP connection. This
user/password information is used if we need to authenticate ourself when connecting to
a peer.
Parameters:
[in] pDev - device structure. Contains the PPP control block.
[in] pUser - null-terminated string specifying a user ID.
[in] pPass - null-terminated string specifying a user password.
B.5.10 pppRemoteUser
tBool pppRemoteUser( tU8* pUser, tU8* pPass )
Register a remote user/password. More than one user/password may be registered. This
function returns FALSE if no more users can be registered. Registered users will be used
when a peer tries to authenticate itself.
Parameters:
[in] pUser - null-terminated string specifying a user ID.
[in] pPass - null-terminated string specifying a user password.
Returns:
TRUE if the user was registered; FALSE if no more users can be registered.
Maximum number of users are specified by MAX_NUM_USERS.