Hello.
I'm modifying the Eddystone Beacon Application example. For now, I can transmit my own Eddystone frame. This frame is static, and the board starts transmitting it because I use the following code:
int main(void) { // Initialize. timers_init(); leds_init(); scheduler_init(); power_management_init(); ble_stack_init(); conn_params_init(); nrf_ble_es_init(on_es_evt); // Enter main loop. for (;;) { idle_state_handle(); } }
With "nrf_ble_es_init (on_es_evt)" the board starts transmitting the beacons. But I want change the transmitted frame (for example, when i push a button). I can't found any function for change the frame after calling "nrf_ble_es_init".
I tried using "es_slot_on_write", but this doesn't work (when I use this, the received frame is empty, it doesn't matter what new frame i use).
I can't found any real documentation about Eddystone library, only brief comments in the code.
I'm using nrf52840 PDK and nRF5 SDK v.15.
Any idea?
Thank you in advance