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

How to change data channels ch_map for mesh ?

Hello, I want to change data channels after provisioning, I follow devzone.nordicsemi.com/.../ here.

To set,

          memset(&new_opt_config, 0, sizeof(new_opt_config));
          new_opt_config.gap_opt.ch_map.ch_map[4] = 0x1F; 
          new_opt_config.gap_opt.ch_map.ch_map[0] = 0xFF;
          new_opt_config.gap_opt.ch_map.ch_map[1] = 0x0F;
          new_opt_config.gap_opt.ch_map.ch_map[2] = 0xFF;
          new_opt_config.gap_opt.ch_map.ch_map[3] = 0x00;
          status = sd_ble_opt_set(BLE_GAP_OPT_CH_MAP,&new_opt_config);

& I received status : NRF_SUCCESS

//To get config > memset(&rcvd_config, 0, sizeof(rcvd_config)); status = sd_ble_opt_get(BLE_GAP_OPT_CH_MAP,&rcvd_config);

& received status :BLE_ERROR_INVALID_CONN_HANDLE, which pointed me to conn_handle.

Que. data channel change is it allow in mesh if yes, What should be opt.gap_opt.ch_map.conn_handle for mesh 1.0.0? (without ) Thanks !

Related