beautypg.com

Philips Bluetooth QuickStart Kit User Manual

Page 47

background image

Bluetooth QuickStart Kit Version 1.0 - User’s Guide

Page 47

Copyright 2004-2005 © Embedded Artists AB

Parameters:

[in] pConn - Control block for the connection.

[in] intVal - Integer value to print.

Returns:

TRUE if the string version of the integer could be copied to the output buffer;
otherwise FALSE.

B.3.12 comPrintChar

tBool comPrintChar( tConnect* pConn, tU8 ch )

Print a character to the output buffer.

Parameters:

[in] pConn - Control block for the connection.

[in] ch - The character to print.

Returns:

TRUE if the character could be copied to the output buffer; otherwise FALSE.

B.3.13 comWrite

tU16 comWrite( tConnect* pConn, tU8* pData, tU16 dataLen )

Write data to the output buffer. This function will return the number of bytes that could
be sent.

Parameters:

[in] pConn - Control block for the connection.

[in] pData - Data to send.

[in] dataLen - Length of the data to send.

Returns:

Number of bytes that were written

B.3.14 comHeader

tBool comHeader( tConnect* pConn, tU8* pHeaderStr, tU8*
pValue, tU32 value )

Function to use for sending headers to an open client connection, i.e. as a response to a
client request.

Parameters:

[in] pConn - Control block for the connection.

[in] pHeaderStr - Either both header and value or just header. If the entire header is
specified in this string it must end with "\r\n", i.e. CRLF. If only the header is
specified in this string it must end with ": ", i.e. a colon and a space.

[in] pValue - A string header value or NULL.