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(); //執(zhí)行任務
??????? return (events ^ SBP_PERIODIC_EVT);
??? }
?? ............................
??? return 0;
}