I have modified the BLE app Blinky example so that the LED is enabled (state 1) on power up. However, this is not being reflected on the BLE side because when I connect with the device and read the LED characteristic this still indicates that the LED is disabled (state 0).
I am now trying to work out how to make the correct mods to the code.
I started with main.c but I didn't find anything within this file that sets (or writes) the initial BLE LED characteristic value.
Searching further I see there is a folder "nRF_BLE_Services", which contains the "ble_lbs" library. It looks like this is probably the place to make the changes, as this defines the custom service using the function "ble_lbs_init". I see that this function is then called by the services_init(void) function within main.c.
But then it gets confusing as to what to do as I thought that the parameter to change would be init which is defined as ble_lbs_init_t typedef. However, this only includes a led_write_handler.
So what's the cleanest way to do this. How do I add a "add_char_params" parameter (assume it's p_init_value) for the LED state.
Any advice is greatly appreciated.
Thanks