ARM/Nordic/nRF52/nRF52840/exemples/MeshLgtSwServer/src/main.c
static void app_onoff_server_get_cb(const app_onoff_server_t * p_server, bool * p_present_onoff)
{
    /* Resolve the server instance here if required, this example uses only 1 instance. */

    *p_present_onoff = hal_led_pin_get(ONOFF_SERVER_0_LED);
}
/* Callback for reading the hardware state */
Callback for reading the hardware state
Callback for reading the hardware state
static void app_onoff_server_get_cb(const app_onoff_server_t * p_server, bool * p_present_onoff)
{
    *p_present_onoff = hal_led_pin_get(ONOFF_SERVER_0_LED);
}
static void app_onoff_server_get_cb ( const app_onoff_server_t * p_server , bool * p_present_onoff ) { * p_present_onoff = hal_led_pin_get ( ONOFF_SERVER_0_LED ) ; }
Callback for reading the hardware state
Callback for reading the hardware state
/* Resolve the server instance here if required, this example uses only 1 instance. */