J. Nick Koston
e1c851cab8
[wifi] Optimize WiFi network storage with FixedVector ( #11458 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2025-10-22 05:23:10 +00:00
J. Nick Koston
3bdd351d49
[wifi] Convert fast_connect to compile-time define, save 156-1024 bytes flash ( #11328 )
2025-10-19 19:52:33 +00:00
J. Nick Koston
33fea90c19
[wifi] Optimize WiFi scanning to reduce copies and heap allocations ( #11323 )
2025-10-19 19:26:18 +00:00
J. Nick Koston
00230f7cc6
[wifi] Use FixedVector for scan results to reduce flash usage ( #11216 )
2025-10-15 00:45:28 +00:00
J. Nick Koston
d75ae357c2
[wifi] Free scan results memory after connection (saves up to 1.2KB RAM) ( #11205 )
2025-10-14 14:25:31 -10:00
J. Nick Koston
4c688a4b00
[network] Optimize get_use_address() to return const reference instead of a copy ( #11218 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-10-14 03:54:33 +00:00
J. Nick Koston
a7ee7b962e
[wifi] Unify ESP32 WiFi implementation to use ESP-IDF driver ( #10849 )
2025-09-23 12:15:12 -05:00
GilDev
fb379bbb88
[wifi] Allow fast_connect with multiple networks ( #9947 )
2025-07-31 15:34:49 +12:00
J. Nick Koston
62f28902c5
[wifi] Reduce memory usage ( #9232 )
2025-06-27 01:50:26 -05:00
Keith Burzinski
9f831e91b3
[helpers] Add `format_mac_address_pretty` function, migrate components ( #9193 )
2025-06-25 12:36:33 +12:00
Rodrigo Martín
149f787035
feat: wifi.configure now emits error after reconnecting to old AP ( #8653 )
2025-05-23 21:32:47 +12:00
Rodrigo Martín
9fc1377b44
feat(WiFi): Add wifi.configure action ( #7335 )
2024-11-25 11:06:21 +13:00
NP v/d Spek
2ecd5cff07
[wifi] Make wifi_channel_() public ( #7818 )
2024-11-25 09:16:51 +13:00
tomaszduda23
2e58297a16
[code-quality] fix clang-tidy wifi related ( #7254 )
2024-08-14 07:58:30 +12:00
Keith Burzinski
6e624ff797
[wifi] Fix EAP for IDF 5.1+, add test ( #7061 )
2024-07-11 16:21:24 +12:00
shxshxshxshx
2921831b55
WPA2 Enterprise - Explicitly set TTLS Phase 2 ( #6436 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2024-05-16 11:37:53 +12:00
Javier Peletier
927caf062b
wifi: fix reconnect issue due to enablement of fast connect ( #6598 )
2024-04-23 08:48:06 +12:00
Jimmy Hedman
f73518dbeb
Improve dualstack and IPv6 support ( #5449 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2024-02-27 21:16:20 +13:00
Rene Guca
e2f2feafdd
WiFi fast_connect: save/load BSSID and channel for faster connect from sleep ( #5931 )
2024-01-18 16:30:58 +09:00
Kevin P. Fleming
e367ab26e1
wifi: Don't build SoftAP/DHCPS support unless 'ap' is in config. ( #5649 )
2023-11-20 16:32:46 +13:00
Charles Johnson
31fec2d692
add wifi.on_connect and wifi.on_disconnect triggers ( #3639 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2023-11-06 23:17:13 -06:00
Kuba Szczodrzyński
a9630ac847
Support for LibreTiny platform (RTL8710, BK7231 & other modules) ( #3509 )
...
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl >
Co-authored-by: Sam Neirinck <git@samneirinck.com >
Co-authored-by: David Buezas <dbuezas@users.noreply.github.com >
Co-authored-by: Stroe Andrei Catalin <catalin2402@gmail.com >
Co-authored-by: Sam Neirinck <github@samneirinck.be >
Co-authored-by: Péter Sárközi <xmisterhu@gmail.com >
Co-authored-by: Hajo Noerenberg <hn@users.noreply.github.com >
2023-09-05 10:16:08 +12:00
Jimmy Hedman
0af8d0b7ea
Remove support for ESP-IDF version < 4 ( #5261 )
2023-08-18 08:02:57 +12:00
Jesse Hills
b06bdc2da3
Allow WIFI to be disabled and enabled ( #4810 )
...
Co-authored-by: Péter Sárközi <xmisterhu@gmail.com >
Co-authored-by: Ash McKenzie <ash@the-rebellion.net >
2023-06-01 11:34:35 +12:00
Christian
0de47e2a4e
Add DNS to Text info ( #4821 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2023-05-17 16:29:21 +12:00
Bella Coola
4c39631428
Add support for passive WiFi scanning ( #4666 )
...
* Add support for passive WiFi scanning.
* Apply suggestions from code review
Made changes suggested by @jesserockz
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
---------
Co-authored-by: BellaCoola <unknown>
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2023-04-20 03:53:42 +00:00
Jesse Hills
9273e3775b
Add vector includes ( #4080 )
2022-11-24 13:12:55 +13:00
Jesse Hills
6153bcc6ad
Initial Support for RP2040 platform ( #3284 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com >
2022-10-20 16:50:39 +13:00
Stijn Tintel
b4bbe3d7b5
wifi: support 802.11k and 802.11v ( #3600 )
2022-08-17 21:10:43 +12:00
anatoly-savchenkov
4791093e48
Add get_ap() method to WiFi ( #3684 )
2022-08-08 07:51:09 +12:00
Oxan van Leeuwen
80d03a631e
Force braces around multi-line statements ( #3094 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2022-01-25 08:56:36 +13:00
Oxan van Leeuwen
cdda648360
Generate ARDUINO_VERSION_CODE in Python code ( #3101 )
...
Co-authored-by: Otto winter <otto@otto-winter.com >
2022-01-24 10:34:34 +01:00
Oxan van Leeuwen
b2430097f2
Enable readability-named-parameter check ( #3098 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2022-01-23 20:39:07 +13:00
Otto Winter
ac0d921413
ESP-IDF support and generic target platforms ( #2303 )
...
* Socket refactor and SSL
* esp-idf temp
* Fixes
* Echo component and noise
* Add noise API transport support
* Updates
* ESP-IDF
* Complete
* Fixes
* Fixes
* Versions update
* New i2c APIs
* Complete i2c refactor
* SPI migration
* Revert ESP Preferences migration, too complex for now
* OTA support
* Remove echo again
* Remove ssl again
* GPIOFlags updates
* Rename esphal and ICACHE_RAM_ATTR
* Make ESP32 arduino compilable again
* Fix GPIO flags
* Complete pin registry refactor and fixes
* Fixes to make test1 compile
* Remove sdkconfig file
* Ignore sdkconfig file
* Fixes in reviewing
* Make test2 compile
* Make test4 compile
* Make test5 compile
* Run clang-format
* Fix lint errors
* Use esp-idf APIs instead of btStart
* Another round of fixes
* Start implementing ESP8266
* Make test3 compile
* Guard esp8266 code
* Lint
* Reformat
* Fixes
* Fixes v2
* more fixes
* ESP-IDF tidy target
* Convert ARDUINO_ARCH_ESPxx
* Update WiFiSignalSensor
* Update time ifdefs
* OTA needs millis from hal
* RestartSwitch needs delay from hal
* ESP-IDF Uart
* Fix OTA blank password
* Allow setting sdkconfig
* Fix idf partitions and allow setting sdkconfig from yaml
* Re-add read/write compat APIs and fix esp8266 uart
* Fix esp8266 store log strings in flash
* Fix ESP32 arduino preferences not initialized
* Update ifdefs
* Change how sdkconfig change is detected
* Add checks to ci-custom and fix them
* Run clang-format
* Add esp-idf clang-tidy target and fix errors
* Fixes from clang-tidy idf round 2
* Fixes from compiling tests with esp-idf
* Run clang-format
* Switch test5.yaml to esp-idf
* Implement ESP8266 Preferences
* Lint
* Re-do PIO package version selection a bit
* Fix arduinoespressif32 package version
* Fix unit tests
* Lint
* Lint fixes
* Fix readv/writev not defined
* Fix graphing component
* Re-add all old options from core/config.py
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2021-09-20 11:47:51 +02:00
Oxan van Leeuwen
5ec9bb0fb5
Clean-up constant definitions ( #2148 )
2021-08-23 19:21:30 +12:00
Oxan van Leeuwen
8cc3cbb22e
Add macros header with more usable Arduino version defines ( #2145 )
2021-08-23 19:19:21 +12:00
Jesse Hills
be61b38a2c
Allow WiFi AP to use device name ( #1990 )
2021-07-09 00:39:37 +12:00
Stefan Agner
501f88ca86
Avoid non-const globals and enable clang-tidy check ( #1892 )
2021-06-11 08:19:44 +12:00
Otto Winter
360effcb72
Activate some clang-tidy checks ( #1884 )
2021-06-10 13:04:40 +02:00
Jesse Hills
a70a205ace
Improv - BLE WiFi provisioning ( #1807 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com >
2021-06-08 11:56:21 +12:00
André Klitzing
a546677b08
Fix build issues for idf 4.2 (Support ESP32-S2) ( #1433 )
...
Co-authored-by: Otto winter <otto@otto-winter.com >
2021-05-12 08:31:40 +12:00
Otto Winter
f3d5d27c8f
WPA2 Enterprise Attempt 2 ( #1158 )
2020-07-24 15:40:05 +02:00
Otto Winter
fad05d5a2e
Add wifi output_power setting ( #853 )
...
* Add wifi output_power setting
See also:
- https://github.com/esphome/feature-requests/issues/471#issuecomment-552350467
- https://github.com/esp8266/Arduino/issues/6366
- https://github.com/esp8266/Arduino/issues/6471
- 849f8cf920/code/espurna/config/general.h (L593-L599)
- https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/network/esp_wifi.html#_CPPv425esp_wifi_set_max_tx_power6int8_t
* Lint
2019-11-12 17:39:27 +01:00
Otto Winter
1876c21e3e
WiFi networks priority ( #658 )
...
* WiFi networks priority
Fixes https://github.com/esphome/feature-requests/issues/136
* Print priority
2019-07-03 20:42:46 +02:00
Otto Winter
13522c8f19
WIP: ESP8266 work on connection issues ( #648 )
...
* Erase all flash for USB uploads on ESP8266s
Previously, only erased "write regions".
Downside: Config for other FWs like tasmota could be affected
Upside: Potentially fixes some ESP8266 connection issues
Related: https://github.com/esphome/issues/issues/455#issuecomment-503524479
* Clear WiFi settings for ESP8266
Clears wifi settings from retained storage on ESP8266 (if set).
Unsure if this is the actual issue, but it won't cause problems either.
* Update wifi_component_esp8266.cpp
* Revert erase chip for testing
* Improve wait_time calculation
2019-07-02 13:03:11 +02:00
Otto Winter
36f47ade70
Add Captive Portal ( #624 )
...
* WIP: Captive Portal
* Updates
* Updates
* Lint
* Fixes
2019-06-09 17:03:51 +02:00
Otto Winter
521c080989
Updates
2019-05-08 09:58:03 +02:00
Otto Winter
6682c43dfa
🏗 Merge C++ into python codebase ( #504 )
...
## Description:
Move esphome-core codebase into esphome (and a bunch of other refactors). See https://github.com/esphome/feature-requests/issues/97
Yes this is a shit ton of work and no there's no way to automate it :( But it will be worth it 👍
Progress:
- Core support (file copy etc): 80%
- Base Abstractions (light, switch): ~50%
- Integrations: ~10%
- Working? Yes, (but only with ported components).
Other refactors:
- Moves all codegen related stuff into a single class: `esphome.codegen` (imported as `cg`)
- Rework coroutine syntax
- Move from `component/platform.py` to `domain/component.py` structure as with HA
- Move all defaults out of C++ and into config validation.
- Remove `make_...` helpers from Application class. Reason: Merge conflicts with every single new integration.
- Pointer Variables are stored globally instead of locally in setup(). Reason: stack size limit.
Future work:
- Rework const.py - Move all `CONF_...` into a conf class (usage `conf.UPDATE_INTERVAL` vs `CONF_UPDATE_INTERVAL`). Reason: Less convoluted import block
- Enable loading from `custom_components` folder.
**Related issue (if applicable):** https://github.com/esphome/feature-requests/issues/97
**Pull request in [esphome-docs](https://github.com/esphome/esphome-docs ) with documentation (if applicable):** esphome/esphome-docs#<esphome-docs PR number goes here>
## Checklist:
- [ ] The code change is tested and works locally.
- [ ] Tests have been added to verify that the new code works (under `tests/` folder).
If user exposed functionality or configuration variables are added/changed:
- [ ] Documentation added/updated in [esphomedocs](https://github.com/OttoWinter/esphomedocs ).
2019-04-17 12:06:00 +02:00