First of all I appreciate your help.I am using mesh example in https://github.com/NordicSemiconductor/nRF51-ble-bcast-mesh link.I can send data by providing connection with the phone by using NRF_Connect application. but how can I send data with DK_Board?I wanna use sd_ble_gatts_hvx function but there is no service how can i can find handle no?the following code gives error could you please help me? Thanks in advance.
uint8_t a[1]={0x67}; void send_gat() { uint16_t len; uint16_t hvx_len; ble_gatts_hvx_params_t hvx_params; len = 1; hvx_len = len; memset(&hvx_params, 0, sizeof(hvx_params)); hvx_params.handle=???; hvx_params.type = BLE_GATT_HVX_NOTIFICATION; hvx_params.offset = 0; hvx_params.p_len = &hvx_len; hvx_params.p_data = a; sd_ble_gatts_value_set er= sd_ble_gatts_hvx(???, &hvx_params);
er = error code = 0x05;
Thank you