mirror of
https://github.com/esphome/esphome.git
synced 2026-02-18 15:35:59 -07:00
Merge branch 'libretiny_wifi' into integration
This commit is contained in:
@@ -8,13 +8,14 @@ CODEOWNERS = ["@jorre05", "@edenhaus"]
|
||||
|
||||
DEPENDENCIES = ["uart"]
|
||||
|
||||
CONF_MICRONOVA_ID = "micronova_id"
|
||||
DOMAIN = "micronova"
|
||||
CONF_MICRONOVA_ID = f"{DOMAIN}_id"
|
||||
CONF_ENABLE_RX_PIN = "enable_rx_pin"
|
||||
CONF_MEMORY_LOCATION = "memory_location"
|
||||
CONF_MEMORY_ADDRESS = "memory_address"
|
||||
DEFAULT_POLLING_INTERVAL = "60s"
|
||||
|
||||
micronova_ns = cg.esphome_ns.namespace("micronova")
|
||||
micronova_ns = cg.esphome_ns.namespace(DOMAIN)
|
||||
|
||||
MicroNovaFunctions = micronova_ns.enum("MicroNovaFunctions", is_class=True)
|
||||
MICRONOVA_FUNCTIONS_ENUM = {
|
||||
@@ -42,6 +43,16 @@ CONFIG_SCHEMA = cv.Schema(
|
||||
}
|
||||
).extend(uart.UART_DEVICE_SCHEMA)
|
||||
|
||||
FINAL_VALIDATE_SCHEMA = uart.final_validate_device_schema(
|
||||
DOMAIN,
|
||||
baud_rate=1200,
|
||||
require_rx=True,
|
||||
require_tx=True,
|
||||
data_bits=8,
|
||||
parity="NONE",
|
||||
stop_bits=2,
|
||||
)
|
||||
|
||||
|
||||
def MICRONOVA_ADDRESS_SCHEMA(
|
||||
*,
|
||||
|
||||
@@ -445,6 +445,7 @@ bool WiFiComponent::wifi_scan_start_(bool passive) {
|
||||
}
|
||||
void WiFiComponent::wifi_scan_done_callback_() {
|
||||
this->scan_result_.clear();
|
||||
this->scan_done_ = true;
|
||||
|
||||
int16_t num = WiFi.scanComplete();
|
||||
if (num < 0)
|
||||
@@ -463,7 +464,6 @@ void WiFiComponent::wifi_scan_done_callback_() {
|
||||
ssid.length() == 0);
|
||||
}
|
||||
WiFi.scanDelete();
|
||||
this->scan_done_ = true;
|
||||
#ifdef USE_WIFI_LISTENERS
|
||||
for (auto *listener : this->scan_results_listeners_) {
|
||||
listener->on_wifi_scan_results(this->scan_result_);
|
||||
|
||||
@@ -2,6 +2,6 @@ substitutions:
|
||||
enable_rx_pin: GPIO13
|
||||
|
||||
packages:
|
||||
uart: !include ../../test_build_components/common/uart/esp32-idf.yaml
|
||||
uart: !include ../../test_build_components/common/uart_1200_none_2stopbits/esp32-idf.yaml
|
||||
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -2,6 +2,6 @@ substitutions:
|
||||
enable_rx_pin: GPIO15
|
||||
|
||||
packages:
|
||||
uart: !include ../../test_build_components/common/uart/esp8266-ard.yaml
|
||||
uart: !include ../../test_build_components/common/uart_1200_none_2stopbits/esp8266-ard.yaml
|
||||
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -2,6 +2,6 @@ substitutions:
|
||||
enable_rx_pin: GPIO3
|
||||
|
||||
packages:
|
||||
uart: !include ../../test_build_components/common/uart/rp2040-ard.yaml
|
||||
uart: !include ../../test_build_components/common/uart_1200_none_2stopbits/rp2040-ard.yaml
|
||||
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
# Common UART configuration for ESP32 Arduino tests - 1200 baud NONE parity 2 stop bits
|
||||
|
||||
substitutions:
|
||||
tx_pin: GPIO17
|
||||
rx_pin: GPIO16
|
||||
|
||||
uart:
|
||||
- id: uart_bus
|
||||
tx_pin: ${tx_pin}
|
||||
rx_pin: ${rx_pin}
|
||||
baud_rate: 1200
|
||||
parity: NONE
|
||||
stop_bits: 2
|
||||
@@ -0,0 +1,13 @@
|
||||
# Common UART configuration for ESP32-C3 Arduino tests - 1200 baud NONE parity 2 stop bits
|
||||
|
||||
substitutions:
|
||||
tx_pin: GPIO20
|
||||
rx_pin: GPIO21
|
||||
|
||||
uart:
|
||||
- id: uart_bus
|
||||
tx_pin: ${tx_pin}
|
||||
rx_pin: ${rx_pin}
|
||||
baud_rate: 1200
|
||||
parity: NONE
|
||||
stop_bits: 2
|
||||
@@ -0,0 +1,13 @@
|
||||
# Common UART configuration for ESP32-C3 IDF tests - 1200 baud NONE parity 2 stop bits
|
||||
|
||||
substitutions:
|
||||
tx_pin: GPIO20
|
||||
rx_pin: GPIO21
|
||||
|
||||
uart:
|
||||
- id: uart_bus
|
||||
tx_pin: ${tx_pin}
|
||||
rx_pin: ${rx_pin}
|
||||
baud_rate: 1200
|
||||
parity: NONE
|
||||
stop_bits: 2
|
||||
@@ -0,0 +1,13 @@
|
||||
# Common UART configuration for ESP32 IDF tests - 1200 baud NONE parity 2 stop bits
|
||||
|
||||
substitutions:
|
||||
tx_pin: GPIO17
|
||||
rx_pin: GPIO16
|
||||
|
||||
uart:
|
||||
- id: uart_bus
|
||||
tx_pin: ${tx_pin}
|
||||
rx_pin: ${rx_pin}
|
||||
baud_rate: 1200
|
||||
parity: NONE
|
||||
stop_bits: 2
|
||||
@@ -0,0 +1,13 @@
|
||||
# Common UART configuration for ESP8266 Arduino tests - 1200 baud NONE parity 2 stop bits
|
||||
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
uart:
|
||||
- id: uart_bus
|
||||
tx_pin: ${tx_pin}
|
||||
rx_pin: ${rx_pin}
|
||||
baud_rate: 1200
|
||||
parity: NONE
|
||||
stop_bits: 2
|
||||
@@ -0,0 +1,13 @@
|
||||
# Common UART configuration for RP2040 Arduino tests - 1200 baud NONE parity 2 stop bits
|
||||
|
||||
substitutions:
|
||||
tx_pin: GPIO0
|
||||
rx_pin: GPIO1
|
||||
|
||||
uart:
|
||||
- id: uart_bus
|
||||
tx_pin: ${tx_pin}
|
||||
rx_pin: ${rx_pin}
|
||||
baud_rate: 1200
|
||||
parity: NONE
|
||||
stop_bits: 2
|
||||
Reference in New Issue
Block a user