SDK15.0.0/SEGGER/Windows
Hi, I ran this example: https://github.com/NordicPlayground/nRF52-ble-long-range-demo.
Note: Added NRF_LOG_INFO("%s", p_adv_report->data.p_data); under void on_adv_report() under line 339 to print out the device name
Upon changing the device name(under sdk_config.h) to “destiny98” on the peripheral side, and then reloading the central side, it prints on the debug terminal "destiny98" on the central side. The advertising packet sends over the RSSI value stored in rssi_value and the device name is stored under p_adv_report->data.p_data over at the central side. On the peripheral side, I changed the device name to “destiny1” and built and ran the peripheral again and was in a non-connectable advertising state. The central side does not erase "destiny98" stored under the variable p_adv_report->data.p_data and this is observed on the debug terminal as it was still printing "destiny98". This means that the advertising variable was not cleared every time the device name was changed on the peripheral side. Later on, an attempt to reset the advertising variable did not work by setting p_adv_report->data.p_data = ""; . This means that on the Central side, the advertising variable is readable but not re-writable.
Are there ways to get around this?