I would like to change the GAP_DEVICE_NAME defined in nrf_mesh_config_app.h by DIP switch.
like "nRF5x Mesh Light 1" or "nRF5x Mesh Light 2"
I have modified the light_switch in SDK for mesh v4.2.0, and I have already read the DIP switch and created the node_number in the following code in main(void).
int sw_1 = (nrf_gpio_pin_read(DIPSW_0) == 0)*1; int sw_2 = (nrf_gpio_pin_read(DIPSW_1) == 0)*2; int node_number = 1 + sw_1 + sw_2;
I would appreciate it if you could tell me where and what code would be best to write.
I am using
nrf5_SDK_for_Mesh_v4.2.0_src
nRF5_SDK_16.0.0_98a08e2
Thank you.