Hi,
I am trying to get the rssi value of the client from servers. I added health client model to server and added app_health_event_cb() funtion from provisioner in server. Also called it in here.
static void models_init_cb(void) { __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "Initializing and adding models\n"); m_server.get_cb = on_off_server_get_cb; m_server.set_cb = on_off_server_set_cb; ERROR_CHECK(simple_on_off_server_init(&m_server, 0)); ERROR_CHECK(access_model_subscription_list_alloc(m_server.model_handle)); //----added code----// /* This app requires following models : * health client : To be able to interact with other health servers */ ERROR_CHECK(health_client_init(&m_dev_handles.m_health_client_instance, 0, app_health_event_cb)); //----added code----// }
But it is not working as it is working in provisioner. No errors are coming.
1. Can we access rssi of client from servers?
2. Can I add Health client model in server?
3. Why this is not working as in provisioner?