Hi All,
I am experiencing a strange issue in the Keyfob peripheral+ broadcaster(keyfob project) device. If i connect keyfob with the master i.e. mobile app and then if i change one byte in the the scan response of the peripheral + broadcaster, then after disconnection from the master i.e. mobile app keyfob advertises scannable undirected advertisement instead of connectable undirect advertisement.
I have made following change in the peripheralBroadcaster.c,
........... ................ .................... ..........
// While in a connection, we can only advertise non-connectable undirected.
// params.eventType = GAP_ADTYPE_ADV_NONCONN_IND;
params.eventType = GAP_ADTYPE_ADV_SCAN_IND;
.....................................................................
Let me explain you the scenario
Suppose my scan resp data contains" name + 1 data byte". The data of data byte changes either to 0x01 or 0x00. Now if the scan resp data was "name+0x00" and then if i try to connect it connects successfully but during disconnection if the scan resp data has been changed to "name+0x01" then after disconnection the device just advertise Scannable undirected advertisement instead of connectable undirected advertisement.
whereas if i keep the scan resp data at the time of connection as well at the during disconnection the ble works fine.
I have also tried updating advertData instead of scan data but still same issue!!
Please let me know what is happening or if there is any configuration to be done.
it is a very critical issue in my project,please rply