gattprofile.c 中修改 simpleProfile_WriteAttrCB中调用TOMS无效
tmos_start_task(0x11, SBP_PERIODIC_EVT, 80);
peripheral.c中修改
static uint8_t Peripheral_TaskID = 0x11;
uint16_t Peripheral_ProcessEvent(uint8_t task_id, uint16_t events)
{
if(events & SBP_PERIODIC_EVT)
{
performPeriodicTask(); //执行任务
return (events ^ SBP_PERIODIC_EVT);
}
............................
return 0;
}