J. Nick Koston
26af1cf650
preen
2025-05-15 02:32:19 -05:00
J. Nick Koston
66b995cffe
cleanups
2025-05-15 02:13:20 -05:00
J. Nick Koston
31e3065600
fixes
2025-05-15 01:49:38 -05:00
J. Nick Koston
872a70d235
fixes
2025-05-15 01:48:43 -05:00
J. Nick Koston
7b84eb2903
fixes
2025-05-15 01:47:18 -05:00
J. Nick Koston
7b4e7108c0
cleanup
2025-05-15 01:45:24 -05:00
J. Nick Koston
d4b42ebf20
Eliminate outbound buffer expensive O(n) with O(1) queue operations
...
- Replaced inefficient vector-based buffer with a queue of discrete message buffers
- Moved common code to base class to reduce duplication
- Removed unnecessary data copying after partial sends
- Added small-buffer optimization to allow writing with backlog <256 bytes
- Moved common code to base class to reduce duplication
2025-05-15 01:31:43 -05:00
J. Nick Koston
dd8d8ad952
Use fixed buffer for plaintext protocol like noise protocol ( #8800 )
2025-05-15 17:16:08 +12:00
J. Nick Koston
8465017db9
Consolidate write_raw_ implementation to reduce code duplication ( #8717 )
2025-05-09 12:10:44 +12:00
J. Nick Koston
ef2621aa54
Reserve space in the frame helper when we know in advance how much we need ( #8716 )
2025-05-08 17:43:39 +12:00
J. Nick Koston
ca78dd44b5
Include MAC address in noise hello ( #8551 )
2025-04-12 09:16:14 -10:00
J. Nick Koston
8269e2c961
Ensure plaintext responds with bad indicator byte before dropping the connection ( #8521 )
2025-04-09 10:27:23 +12:00
tomaszduda23
cbc03aae80
[code-quality] fix clang-tidy api ( #7279 )
2024-10-07 11:55:11 +13:00
Oxan van Leeuwen
14e38f0469
Upgrade clang-format to v13 ( #4535 )
...
* Upgrade clang-format to v13
* Apply clang-format-13 formatting changes
* Format
* Format bme_680
---------
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2023-03-20 03:38:41 +00:00
J. Nick Koston
ed4a7210d3
Ensure we never write zero bytes ( #4284 )
2023-01-16 13:24:32 +13:00
André Klitzing
72cce391ab
Fix some typos found by codespell ( #3598 )
2022-06-27 18:02:46 -03:00
Otto Winter
62f9736b1d
API: Expect a name for connections ( #2533 )
2022-01-20 12:03:32 +01:00
Oxan van Leeuwen
737188ae50
Fail hard if no random bytes available for encryption ( #3067 )
2022-01-18 14:29:57 +13:00
Oxan van Leeuwen
6383eca54a
Clean-up random helper functions ( #3022 )
2022-01-10 13:50:26 +13:00
Oxan van Leeuwen
beeb0c7c5a
Introduce hex parsing & formatting helper functions ( #2882 )
2021-12-13 09:15:23 +13:00
Oxan van Leeuwen
607601b3a4
Enable a bunch of clang-tidy checks ( #2149 )
2021-12-02 09:03:51 +13:00
Otto Winter
9220d9fc52
Fix socket connection closed not detected ( #2587 )
2021-10-22 10:46:44 +02:00
Otto Winter
97e76d64d6
Re-enable TCP nodelay for ESP32 ( #2390 )
2021-09-27 11:40:28 +02: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
Otto Winter
a990898256
Add readv and writev for more efficient API packets ( #2342 )
2021-09-20 10:33:10 +12:00
Otto Winter
dd3f2f6c7e
Fix api noise explicit reject ( #2297 )
2021-09-14 11:53:49 +02:00
Otto Winter
ed7983af41
Fix API socket issues ( #2288 )
...
* Fix API socket issues
* Fix compile error against beta
* Format
2021-09-13 18:52:53 +02:00
Jesse Hills
affaaf7d2c
Fix a few ESP32-C3 compiler issues ( #2265 )
...
* Fix using Serial when using ESP32-C3 standard pins
* Force type for std::min in pn532
* Fix variable size where size_t is different on exp32-c3
2021-09-10 12:10:28 +12:00
Otto Winter
e5051eefbc
API encryption ( #2254 )
2021-09-09 09:22:47 +12:00
Otto Winter
2790d72bff
Convert API to use sockets ( #2253 )
...
* Socket component
* Lint
* Lint
* Fix esp8266 missing INADDR_ANY
* API convert to sockets and frame helper
* Fix compile error
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2021-09-08 12:52:57 +02:00