Other Parts Discussed in Thread: CC2640, BLE-STACK
In the CC2640 Software Developer’s Guide 4.2.4 ICall Initialization and Registration,there're some words as follows:
"Prior to using ICall protocol services, both the server and client must enroll and register with ICall. The server enrolls a service which is enumerated at build time."
So,if I want to use the service provided by BLE-stack via ICALL,I need to enroll the service first.But in the SenorTagStack project,I only find two places using ICall_enrollService function to enroll the service:
1. ICall_enrollService(ICALL_SERVICE_CLASS_BLE, NULL, &entity, &sem);
2. ICall_enrollService(ICALL_SERVICE_CLASS_BLE_MSG,(ICall_ServiceFunc) osal_service_entry,&osal_entity,&osal_semaphore)
My questions are:
1. In the first ICall_enrollService,why does it omit the second parameter? what's the function of the service?
2. I can't understand "the BLE protocol stack service",for example, if i read a Characteristic Value,is it a BLE protocol stack service? If yes,it should be enrolled,but i can't find it.