User's Manual

Enhanced Class 1 Bluetooth v2.1 Module
User’s Guide
Americas: +1-800-492-2320 Option 2
Europe: +44-1628-858-940
Hong Kong: +852-2923-0610
www.lairdtech.com/wireless
133
CONN-GUIDE-BT740_v0.2
{
printf("INSUFFICIENT LENGTH -- ABORT display of msg");
break;
}
pMsg += sprintf(pMsg," A:%d (%04X),<len=%d> ",
nAttrId,
nAttrId,
nAttrLen);
{
uint16 nBlockLen = (nAttrLen>24)
? 24
: nAttrLen;
uint8 *pData = pSrc;
while(nBlockLen--)
{
pMsg += sprintf(pMsg,"%02X",*pData++);
}
if( nAttrLen > 24 )
{
pMsg += sprintf(pMsg,"...");
}
}
pSrc += nAttrLen;
printf(baMsg);
break;
default:
printf("OBJECT TYPE TAG unknown %d -- ABORT display of msg",*pSrc);
return;
}
}