static void handleAccessWrite(GATT_ACCESS_IND_T *p_ind) { /* Check all the services that support attribute 'Write' operation handled * by application */ if(GapCheckHandleRange(p_ind->handle)) { GapHandleAccessWrite(p_ind); } else if(HidCheckHandleRange(p_ind->handle)) { HidHandleAccessWrite(p_ind); } else if(BatteryCheckHandleRange(p_ind->handle)) { BatteryHandleAccessWrite(p_ind); } else if(ScanParamCheckHandleRange(p_ind->handle)) { ScanParamHandleAccessWrite(p_ind); } else { GattAccessRsp(p_ind->cid, p_ind->handle, gatt_status_write_not_permitted, 0, NULL); } }
static void handleAccessWrite(GATT_ACCESS_IND_T *p_ind) { /* Check all the services that support attribute 'Write' operation handled * by application */ if(GapCheckHandleRange(p_ind->handle)) { GapHandleAccessWrite(p_ind); } #ifdef ENABLE_OTA else if(GattCheckHandleRange(p_ind->handle)) { /* Attribute handle belongs to Gatt service */ GattHandleAccessWrite(p_ind); } else if(OtaCheckHandleRange(p_ind->handle)) { /* Attribute handle belongs to OTA service */ OtaHandleAccessWrite(p_ind); } #endif /* ENABLE_OTA */ else if(HidCheckHandleRange(p_ind->handle)) { HidHandleAccessWrite(p_ind); } #ifdef __PROPRIETARY_HID_SUPPORT__ else if(HidBootCheckHandleRange(p_ind->handle)) { HidBootHandleAccessWrite(p_ind); } #endif /* __PROPRIETARY_HID_SUPPORT__ */ else if(BatteryCheckHandleRange(p_ind->handle)) { BatteryHandleAccessWrite(p_ind); } else if(ScanParamCheckHandleRange(p_ind->handle)) { ScanParamHandleAccessWrite(p_ind); } else if(BondMgmtCheckHandleRange(p_ind->handle)) { BondMgmtHandleAccessWrite(p_ind); } else { GattAccessRsp(p_ind->cid, p_ind->handle, gatt_status_write_not_permitted, 0, NULL); } }