Hi all,
My Simple Peripheral project advertise every 20ms, i would to disable connection or refuse it.
In other words, i would to create a simple broadcaster that send a packet every 20ms (it is not possible with SimpleBroadcaster project).
Thanks
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi all,
My Simple Peripheral project advertise every 20ms, i would to disable connection or refuse it.
In other words, i would to create a simple broadcaster that send a packet every 20ms (it is not possible with SimpleBroadcaster project).
Thanks
Hi Paki,
To just advertise and disable connection establishment, in peripheral.c, change the advertising type to GAP_ADTYPE_ADV_NONCONN_IND:
void GAPRole_Init( uint8 task_id )
{
...
gapRole_AdvEventType = GAP_ADTYPE_ADV_NONCONN_IND;
...
}
Hope this helps.
Zahid Haq said:Hi Paki,
To just advertise and disable connection establishment, in peripheral.c, change the advertising type to GAP_ADTYPE_ADV_NONCONN_IND:
void GAPRole_Init( uint8 task_id )
{...
gapRole_AdvEventType = GAP_ADTYPE_ADV_NONCONN_IND;
...
}
Hope this helps.