我设置断点看了一下,每次运行到这里都会仿真断开,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:
谢谢回答