Part Number: CC2640R2F
Dear All,
I am trying to add multi-role function to my simple-peripheral project.
Now I have encountered a problem. My device can't scan other sensors.
Here is my scan function code :
#define INVALIDPARAMETER 0x02 //!< Invalid Parameter
Status=GAPRole_StartDiscovery(DEFAULT_DISCOVERY_MODE,
DEFAULT_DISCOVERY_ACTIVE_SCAN, DEFAULT_DISCOVERY_WHITE_LIST);
/INVALIDPARAMETER
Display_printf(dispHandle, 23, 0, "\r\n ,Discovering status: %d...\r\n",Status);
Discovering status: 2...
My question are:
1.Do I have to change device mode from peripheral to central.
If so, How to chagne it?
2. Why I received a INVALIDPARAMETER error code after doing the scan function.
Thanks.
