I have combined light switch client and ble_app_uart example by following this guide and this case ,but after I added the codes :
#define MESH_SOC_OBSERVER_PRIO //<set priority, see nRF5 SDK documentation for details>
static void mesh_soc_evt_handler(uint32_t evt_id, void * p_context)
{
nrf_mesh_on_sd_evt(evt_id);
}
NRF_SDH_SOC_OBSERVER(m_mesh_soc_observer, MESH_SOC_OBSERVER_PRIO, mesh_soc_evt_handler, NULL);
it showed these errors:
expected expression before '<' token (happened in nrf_sdh_soc.h STATIC_ASSERT(_prio < NRF_SDH_SOC_OBSERVER_PRIO_LEVELS, "Priority level unavailable."); )
conflicting types for 'nrf_mesh_on_sd_evt' ( uint32_t nrf_mesh_on_sd_evt(uint32_t sd_evt); in nrf_mesh.h)
It's so unreasonable.I can't find the reason about the two errors and I don;t see any other people have the same problem. Maybe the other codes are wrong. It makes me confused.
thanks for any advice.