Developer

API Reference

IBTBIPInitiator_Config()

Brew Release
Brew MP 1.0.2
Description
Prepares local Bluetooth device for communicating with BIP responder. The BD address and server channel identify the responder to which to connect. Configuration is only allowed when the object is not in the middle of an operation. If the object is idle but a connection to another responder is present, that connection would be brought down automatically and all pending data is discarded before configuration data is set.
Once configured, the BIP Initiator object will attempt to connect to the remote responder whenever application initiates an operation. It will maintain the connection until the operation completes and the idle timeout expires.
Parameters
  • _me
    [in]:
    the object
  • pBDAddr
    [in]:
    address of responder
  • scn
    [in]:
    RFCOMM server channel of responder; 0 to select the first responder found on remote device
  • cSec
    [in]:
    minimum security level to be used when connecting to responder
  • nIdleTimeSec
    [in]:
    number of seconds before an idle connection is brought down
    Return
  • AEE_SUCCESS
    []:
    Configuration data accepted.
  • AEE_EBADPARM
    []:
    invalid input parameters.
  • AEE_EBADSTATE
    []:
    Still connected to another responder
Prototype
   AEEResult IBTBIPInitiator_Config(IBTBIPInitiator* _me,
                                    const BDAddress* pBDAddr, 
                                    uint8            scn, 
                                    BTSecurityLevel  cSec, 
                                    int              nIdleTimeSec);
Comment
None
  • Follow