ESPHome  2024.10.2
Functions
Test component information

Contains information about the auto-tests of the component. More...

Functions

void esphome::weikai::print_buffer (std::vector< uint8_t > buffer)
 Hex converter to print/display a buffer in hexadecimal format (32 hex values / line). More...
 
void esphome::weikai::WeikaiComponent::test_gpio_input_ ()
 
void esphome::weikai::WeikaiComponent::test_gpio_output_ ()
 
void esphome::weikai::WeikaiChannel::uart_send_test_ (char *message)
 Test the write_array() method. More...
 
bool esphome::weikai::WeikaiChannel::uart_receive_test_ (char *message)
 Test the read_array() method. More...
 

Detailed Description

Contains information about the auto-tests of the component.

Function Documentation

◆ print_buffer()

void esphome::weikai::print_buffer ( std::vector< uint8_t >  buffer)

Hex converter to print/display a buffer in hexadecimal format (32 hex values / line).

Parameters
buffercontains the values to display

Definition at line 538 of file weikai.cpp.

◆ test_gpio_input_()

void esphome::weikai::WeikaiComponent::test_gpio_input_ ( )
protected

Definition at line 221 of file weikai.cpp.

◆ test_gpio_output_()

void esphome::weikai::WeikaiComponent::test_gpio_output_ ( )
protected

Definition at line 240 of file weikai.cpp.

◆ uart_receive_test_()

bool esphome::weikai::WeikaiChannel::uart_receive_test_ ( char *  message)
protected

Test the read_array() method.

test read_array method

Parameters
messageto display
Returns
true if success

Definition at line 568 of file weikai.cpp.

◆ uart_send_test_()

void esphome::weikai::WeikaiChannel::uart_send_test_ ( char *  message)
protected

Test the write_array() method.

test the write_array method

Parameters
messageto display

Definition at line 554 of file weikai.cpp.