Hi,
Central nrf52840
peripheral nrf52840
adv. interval: 25ms
adv. timeout 180 seconds
connection interval (both min and max) 10ms
scan interval 50 ms
scan windows 25ms
scan timeout 0
connection supervision timeout 4s
My question is, when the central or the peripheral device is disconnected(powered off and on again), I want the notifications to continue by advertising and scanning etc. This should ideally happen even when the peripheral device or central goes in and out of range. I noticed that when the central device is powered off, the peripheral starts advertising and when it is on, it connects with the central device and "Notifications" are received. However, in some cases, they just connect and send and receive only EMPTY DATA PDU although there is data at the transmitter it's just not being transmitted in the form of notification. Why does this happen and how to prevent this situation? One more evidence to this case is that, when they just communicate using empty data PDU, error_code 3401 is logged at this line err_code = sd_ble_gatts_hvx(p_semg->conn_handle, &hvx_params); (peripheral)
Thanks, Nivetha