OVMS3-idf/examples/peripherals/uart_events
Wangjialin 870efdb9d4 bugfix(uart): patten detect function
requirement from github(https://github.com/espressif/esp-idf/issues/805): to provide the position in the buffer of the pattern detected.

requirement from AT application: in AT app, when no hardware flow control is enabled, in some situation the rx buffer might be full, and the terminator “+++” might be lost, we can use pattern detect interrupt to avoid missing the terminator. When pattern detect interrupt happens, it will not send a data event at the same time.

1. Add API to get position of detected pattern in rx buffer
2. Modify UART event example
3. Add comments for uart_flush, add alias API uart_flush_input to clear the rx buffer
4. Modify the way rx_buffered_len is calculated
2018-01-22 13:33:51 +08:00
..
main bugfix(uart): patten detect function 2018-01-22 13:33:51 +08:00
Makefile examples: Standardise naming of files, symbols, etc. in examples 2017-03-27 17:42:05 +11:00
README.md Updated UART API documentation and examples. Included a fix of #1091 from GitHub 2017-10-10 05:54:36 +02:00

UART Events Example

This example shows how to use the UART driver to handle special UART events. It also reads data from UART0 directly, and echoes it to console.

How to use it?

  1. Compile and load example from terminl running make flash monitor
  2. Being in 'monotor' type samething to see the UART_DATA events and the typed data displayed.

See the README.md file in the upper level 'examples' directory for more information about examples.