This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Error 0x3401 on sending advertising packets

Hello,

I am currently working on project that uses BLE peripheral and BLE central for automatic sensor calibration on custom board. There is an initial connection where both central and peripheral connect and successfully communicate data on notification characteristic from BLE peripheral to BLE central. Then they disconnect and peripheral stops advertising for some time. Peripheral reinitialises the advertising packet data.

I start advertising on the peripheral again and I initiate a second connection between the BLE central and BLE peripheral. However, this time the peripheral when sending data on the notification characterisitic displays an error of 0x3401 which corresponds to NRF_ERROR_STK_BASE_NUM, NRF_GATTS_ERR_BASE, BLE_ERROR_NOT_ENABLED. BLE central can still send data successfully on the write characteristic. So it's not a connection problem.

Why would this error occur upon connecting on second time?

Related