

When the system message matches one filter, it will not continue to match other filters. After filtering, the data matching the regular expression will be filtered out by AT, and MCU will not receive it, whereas the unmatched data will be sent to the MCU as it is. Only when the system message matches both the header regular expression and the tail regular expression at the same time is the system message filtered. In order to avoid system message (TX data of AT command port) being filtered incorrectly, it is strongly recommended that the header regular expression starts with ^ and the tail regular expression ends with $. Then, use AT+SYSMSGFILTER to enable the system message filtering to achieve more sophisticated system message management.įor more details about header and tail regular expression format, refer to POSIX Basic Regular Expression (BRE). Please use this command to set up system message filters. int32_t esp_at_port_active_write_data ( uint8_t data, int32_t len ) Data will be filtered by AT + SYSMSGFILTER command ( if enabled ), and AT will actively wake up MCU before sending data ( MCU wake - up function is set by AT + USERWKMCUCFG command ). int32_t esp_at_port_active_write_data_without_filter ( uint8_t data, int32_t len ) // Data transmission via AT command port with wake - up MCU function and filtering function. Data will not be filtered by AT + SYSMSGFILTER command, and AT will actively wake up MCU before sending data ( MCU wake - up function is set by AT + USERWKMCUCFG command ). int32_t esp_at_port_write_data ( uint8_t data, int32_t len ) // Data transmission via AT command port with wake - up MCU function. Data will be filtered by AT + SYSMSGFILTER command ( if enabled ), and AT will not actively wake up MCU before sending data ( MCU wake - up function is set by AT + USERWKMCUCFG command ). int32_t esp_at_port_write_data_without_filter ( uint8_t data, int32_t len ) // Data transmission via AT command port with a filtering function. Data will not be filtered by AT + SYSMSGFILTER command, and AT will not actively wake up MCU before sending data ( MCU wake - up function is set by AT + USERWKMCUCFG ). Data transmission via native AT command port.
#Dcommands def code#

AT+SYSMSGFILTER: Enable or Disable the system message Filter.AT+SYSMSG: Query/Set System Prompt Information.

AT+SYSRAM: Query Current Remaining Heap Size and Minimum Heap Size.AT+UART_DEF: Default UART Configuration, Saved in Flash.

