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

sd_ble_gatts_value_set

when I call sd_ble_gatts_value_set, "HardFault_Handler" occurs.I don't understand why.

static void lock_update_value(ble_lbs_t * p_lbs, uint8_t *state) { uint16_t len = sizeof(uint8_t);

 sd_ble_gatts_value_set(p_lbs->lock_char_handles.value_handle,
	                                  0,
	                                  &len,
	                                  state);

}

Related