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

cc2640r2f中从机调用GATT_Notification(0,req,false);这个函数给主机发数据,会导致从机重启吗?

我设置断点看了一下,每次运行到这里都会仿真断开,unknown cpu

Alvin Chen:

不会。

hahaha33:

回复 Alvin Chen:

谢谢回答

Alvin Chen:

回复 hahaha33:

你可以使用simpleperipheral 去测试一下,在 SimpleProfile_SetParameter(SIMPLEPROFILE_CHAR4, sizeof(uint8_t),本质上是notify&valueToCopy);
static void SimplePeripheral_performPeriodicTask(void)
{uint8_t valueToCopy;
// Call to retrieve the value of the third characteristic in the profileif (SimpleProfile_GetParameter(SIMPLEPROFILE_CHAR3, &valueToCopy) == SUCCESS){// Call to set that value of the fourth characteristic in the profile.// Note that if notifications of the fourth characteristic have been// enabled by a GATT client device, then a notification will be sent// every time this function is called.SimpleProfile_SetParameter(SIMPLEPROFILE_CHAR4, sizeof(uint8_t),&valueToCopy);}
}

hahaha33:

回复 Alvin Chen:

谢谢回答

赞(0)
未经允许不得转载:TI中文支持网 » cc2640r2f中从机调用GATT_Notification(0,req,false);这个函数给主机发数据,会导致从机重启吗?
分享到: 更多 (0)