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

how to print the data from particular node to uart

hi...

i am working on mesh , i have done light switch example , now i want to get some message from node and send to particular node . how to print the same message which is from particular node to uart termite 

please help me out. 

thanks in advance 

Parents Reply
  • yeah , set_params.on_off is in bool state , so now i changed it to a character,

     uint16_t x_in;
        char a = 78;
     //char arr[80] = "code";
    // char ara [80] = "set";
     
        switch(button_number)
        {
            case 0:
            case 2:
            
               x_in = a;
                break;
    
            case 1:
            case 3:
           
                x_in = a;
                break;
        }
    
        set_params.tid = tid++;
        transition_params.delay_ms = APP_CONFIG_ONOFF_DELAY_MS;
        transition_params.transition_time_ms = APP_CONFIG_ONOFF_TRANSITION_TIME_MS;
        __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "Sending msg: ONOFF SET %d\n",x_in);
    

    yes i got  result , but not in server side, i hope that i  need to make some changes in server side, where i should change and how

Children
Related