API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IBTCONNECTIONFACTORY_GETCONNECTIONOBJECT()

Brew Release
Brew MP 1.0.2
Description
Retrieves a connection object that can be used to monitor the status of a Bluetooth connection.
Params
_me
[in]:
The object.
pBDAddr
[in]:
BDAddress of connected device.
pBTConnection
[out]:
Place holder for IBTConnection1 object.
Return
AEE_SUCCESS
[]:
IBTConnection1 object successfully retrieved.
AEE_EBADPARM
[]:
Invalid input parameters.
AEE_ENOSUCH
[]:
No connection exists with the device with specified BDAddress.
AEE_EBADSTATE
[]:
Driver error. Another appropriate error code if operation was not successful
Prototype
  •    AEEResult IBTConnectionFactory_GetConnectionObject(IBTConnectionFactory* _me,
                                                          const BDAddress* pBDAddr,
                                                          IBTConnection1** pBTConnection)
Side Effect
  • None
Comments
When this API returns referance to IBTConnection1 object will get incremented and its caller's responsibility to Release the object when caller is done with the IBTConnection1 object (or when the connection goes down) using IBTConnection1_Release() API.