TI中文支持网
TI专业的中文技术问题搜集分享网站

请问 用app给cc2650蓝牙发数据, 蓝牙本地接收代码在哪一段

比如给heartrate 例程的 control point  2A39写数据,那么2650 接收这个数据是在哪个地方,没找到

Viki Shi:

static void SimplePeripheral_processCharValueChangeEvt(uint8_t paramID)
{
uint8_t newValue;

switch(paramID)
{
case SIMPLEPROFILE_CHAR1:
SimpleProfile_GetParameter(SIMPLEPROFILE_CHAR1, &newValue);

Display_print1(dispHandle, 4, 0, "Char 1: %d", (uint16_t)newValue);
break;

case SIMPLEPROFILE_CHAR3:
SimpleProfile_GetParameter(SIMPLEPROFILE_CHAR3, &newValue);

Display_print1(dispHandle, 4, 0, "Char 3: %d", (uint16_t)newValue);
break;

default:
// should not reach here!
break;
}
}

赞(0)
未经允许不得转载:TI中文支持网 » 请问 用app给cc2650蓝牙发数据, 蓝牙本地接收代码在哪一段
分享到: 更多 (0)