Core/Src/main.c
void uart_command_received(const uint8_t* command, uint32_t len) {
    log_trace("Received UART message: %.*s", len, command);

    if (len < 1) {
        log_error("Empty command received");
        return;
    }

    bool output = false;
    switch (command[0]) {
        case 'd':
        case 'f':
        case 'n':
            output = uart_set_parameter(command, len);
            break;
        case 'e':
        case 'p':
            output = uart_experiment(command, len);
    }


    if (!output) {
        log_error("I could not understand your command. Please try again");
    }
}
/**
 * Handler from any received messages by UART
 */
Handler from any received messages by UART
Handler from any received messages by UART
void uart_command_received(const uint8_t* command, uint32_t len) {
    log_trace("Received UART message: %.*s", len, command);
    if (len < 1) {
        log_error("Empty command received");
        return;
    }
    bool output = false;
    switch (command[0]) {
        case 'd':
        case 'f':
        case 'n':
            output = uart_set_parameter(command, len);
            break;
        case 'e':
        case 'p':
            output = uart_experiment(command, len);
    }
    if (!output) {
        log_error("I could not understand your command. Please try again");
    }
}
void uart_command_received ( const uint8_t * command , uint32_t len ) { log_trace ( " " , len , command ) ; if ( len < 1 ) { log_error ( " " ) ; return ; } bool output = false ; switch ( command [ 0 ] ) { case ' ' : case ' ' : case ' ' : output = uart_set_parameter ( command , len ) ; break ; case ' ' : case ' ' : output = uart_experiment ( command , len ) ; } if ( ! output ) { log_error ( " " ) ; } }
Handler from any received messages by UART
Handler from any received messages by UART