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

Developer

API Reference

IBTBPPREFOBJECTSERVER_REFOBJRESPONSESTREAM()

Brew Release
Brew MP 1.0.2
See Also
IBTBPPRefObjectServer_RefObjResponse IBTBPPRefObjectServer_GetRefObjRequest
Description
The application can respond to referenced object requests from the Printer using this API.Each request from the printer for this object/parts of object will generate AEEBTBPPSRV_EV_REF_OBJ_REQ. If the application cannot respond with all the data requested by the printer, bFinal should be set to FALSE. AEEBTBPPSRV_EV_REF_OBJ_CONTINUE is generated to allow the application to respond with more data.
Params
_me
[in]:
the object
pszRefObjName
[in]:
name of object requested by the printer.
databuffer
[in]:
pointer to data buffer.
databufferLen
[in]:
size of databuffer
uFileSize
[in]:
size of the file. -1 indicates unknown E.g. if the app is streaming data from another source.
bFinal
[in]:
TRUE, to indicate that databuffer contains all the data requested by the printer and there is no more data to send.
Return
AEE_SUCCESS
[]:
data successfully sent to printer
AEE_EBADPARM
[]:
bad input parameters
Prototype
  •    AEEResult IBTBPPRefObjectServer_RefObjResponseStream(IBTBPPRefObjectServer* _me,
                                                            const char*            pszRefObjName,
                                                            const uint8*           databuffer,
                                                            int                    databufferLen,
                                                            int                    uFileSize,
                                                            boolean                bFinal)
    
Side Effect
  • None.
Comments
None.