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

lc client

Lc client for nrf52840 dongle  is available in which sdk

Parents Reply Children
  • I want to check other command also light_lc_client_light_onoff_set

    with this command from client i am able operated light off and light on with full brightness on the server

    but how to get the gradual fade on and fade off on the client please suggest which command i need to use 

  • I want to check other command also light_lc_client_light_onoff_set

    with this command from client i am able operated light off and light on with full brightness on the server

    but how to get the gradual fade on and fade off on the client please suggest which command i need to use 

    i am setting all the params on the mobile side(like prolong lightness,fade on time -10sec etc...)

    it will be appreciate if you suggest this answer

  • thukeri said:
    but how to get the gradual fade on and fade off on the client please suggest which command i need to use 

    Do you mean like a dimmable light? I suggest you take a look at the Light lightness example.

  • Hi,

    please find the logs below of ctl+lc server

    after sending command from lc client on command

    transition_params.delay_ms = 0;
    transition_params.transition_time_ms = 0;
    (void)access_model_reliable_cancel(m_clients[0].model_handle);
    status = light_lc_client_light_onoff_set(&m_clients[0], &set_params,&transition_params);
    break;

    how to get the stand by along with fadeon...which command need to use..if you suggest an answer to this would be thankful..

    0>, main.c, 539, ----- BLE Mesh Light CTL+LC Setup Server Demo -----
    <t: 0>, pwm_utils.c, 88, PWM max ticks: 1600
    <t: 16989>, main.c, 284, App Light Lightness Model handle: 8, Element index: 0
    <t: 16997>, main.c, 289, App CTL Model Handle: 12, Element index: 0
    <t: 17003>, main.c, 294, App LC (15, 0) = (Model Handle, element index)
    <t: 17099>, main.c, 478, Node Address: 0x0109
    <t: 17101>, mesh_app_utils.c, 66, Device UUID (raw): B09581265FD146DDB7D581A9072CD63A
    <t: 17105>, mesh_app_utils.c, 67, Device UUID : B0958126-5FD1-46DD-B7D5-81A9072CD63A
    <t: 17132>, main.c, 594,
    -----------------------------------------------------------------------------------------------
    RTT 1) Toggle setting the property values to requested values or to the default values.
    RTT 2) Increase Color temperature value, will wrap around to min when max is reached.
    RTT 4) Clear all the states to reset the node.
    -----------------------------------------------------------------------------------------------
    <t: 17452>, main.c, 258, actual lightness = 0
    <t: 17455>, main.c, 275, Transition time: 0, Target lightness: 0
    <t: 17466>, light_lc_setup_server.c, 822, LC FSM ON
    <t: 17527>, app_light_ctl.c, 384, Temp SET: target temperature: 8000 duv: 0, delay: 0 tt: 0 req-delta: 8000
    <t: 17532>, app_light_ctl.c, 976, Element 0: transition completed
    <t: 17535>, main.c, 249, Transition time: 0, Target temperature: 8000, Target delta_uv: 0
    <t: 112562>, main.c, 258, actual lightness = 43961
    <t: 112566>, main.c, 275, Transition time: 0, Target lightness: 43961
    <t: 115866>, main.c, 258, actual lightness = 65535
    <t: 115870>, main.c, 275, Transition time: 0, Target lightness: 65535
    <t: 325748>, main.c, 258, actual lightness = 48602
    <t: 325752>, main.c, 275, Transition time: 0, Target lightness: 48602
    <t: 329052>, main.c, 258, actual lightness = 0
    <t: 329056>, main.c, 275, Transition time: 0, Target lightness: 0
    <t: 437276>, main.c, 258, actual lightness = 43961
    <t: 437280>, main.c, 275, Transition time: 0, Target lightness: 43961
    <t: 440580>, main.c, 258, actual lightness = 65535
    <t: 440584>, main.c, 275, Transition time: 0, Target lightness: 65535
    2822882>, main.c, 275, Transition time: 0, Target lightness: 65535

Related