Developer

API Reference

IBTBPPSender_Connect()

Brew Release
Brew MP 1.0.2
See Also
IBTBPPSender_Disconnect
Description
Initiates connection to the Direct Printing Service of the specified printer.The implementation is responsible for bringing up and tearing down the status channel.
Parameters
  • _me
    [in]:
    the object.
  • bdAddr
    [in]:
    Bluetooth Device address of the printer.
  • uServerChannel
    [in]:
    server channel of direct printing service. If Zero, the implementation will find the server channel number associated with the service.
  • cMinSecurity
    [in]:
    minimum security level enforced on the connection.
    Return
  • AEE_SUCCESS
    []:
    Connection procedure has been initiated. Either AEEBTBPP_EV_CONNECTED or AEEBTBPP_EV_CONN_FAILED will be generated to indicate the result of the operation.
  • AEE_EBADPARM
    []:
    invalid input parameters.
  • AEE_EBADSTATE
    []:
    connected to a printer, or in the middle of another operation.
Interface
Prototype
   AEEResult IBTBPPSender_Connect(IBTBPPSender*    _me,
                                  const BDAddress* bdAddr,
                                  uint8            uServerChannel,
                                  BTSecurityLevel  cMinSecurity); 
Side Effect
None.
Comment
None.
  • Follow