Commit Graph

1764 Commits

Author SHA1 Message Date
HomeSpan 4b24f850d6 Update 07-AccessoryNames.ino
fix typo
2023-11-01 11:54:47 -05:00
HomeSpan 30ffc26666
Merge pull request #672 from mgeramb/ImproveExample
Add hint for UTF8 usage for names
2023-11-01 11:50:50 -05:00
Gregg b41fc3ac7e Update HomeSpan.h
Forgot braces in for-loop of autoPoll()
2023-10-31 18:21:16 -05:00
HomeSpan f482dc1b09
Merge pull request #673 from HomeSpan/dev
Moved vTaskDelay(5) from pollTask() to homeSpan.autoPoll()
2023-10-31 18:13:44 -05:00
Gregg 8b3192e122 Moved vTaskDelay(5) from pollTask() to homeSpan.autoPoll()
Adding the vTaskDelay(5) to the code that spawns the separate task is more consistent with how Arduino-ESP32 spawns the main loop() task.
2023-10-31 18:11:09 -05:00
Michael Geramb 869e768ba7 Add hint for UTF8 usage in names 2023-10-31 19:52:49 +01:00
HomeSpan e7a1bb78be
Update Logging.md 2023-10-31 08:06:35 -05:00
Gregg 42f69adf49 Made vTaskDelay(5) in pollTask conditional of using autoPoll()
vTaskDelay(5) is only needed if polling is in its own task.  If calling poll() directly, there is no need for any delay.
2023-10-30 06:29:38 -05:00
HomeSpan 643c737634
Update Reference.md 2023-10-29 21:05:20 -05:00
Gregg 56a2f0bece Changed Accessory Limit from 41 to 150 and added Memory Warning
Low Memory Watermark is compared to DEFAULT_LOW_MEM_THRESHOLD (currently set at 80,000 bytes) after HAP initialization but before WIFI connection.  If Low Memory Watermark is below DEFAULT_LOW_MEM_THRESHOLD, a WARNING is issued.

Note: memory is based on heap with MALLOC_CAP_DEFAULT capabilities
2023-10-29 20:55:02 -05:00
HomeSpan c835a8620f
Update Logging.md 2023-10-29 14:03:28 -05:00
HomeSpan fa05738ff6
Update Reference.md 2023-10-29 10:17:06 -05:00
HomeSpan fe9f35aa84
Update README.md 2023-10-29 10:14:14 -05:00
HomeSpan 02d39a61c0
Update Reference.md 2023-10-29 10:03:26 -05:00
Gregg 5ce7211539 Made conforming changes to setVerboseWiFiReconnect 2023-10-28 18:40:04 -05:00
HomeSpan a93aef1604
Merge pull request #670 from frankonski/verbose_reconnect
Verbose WiFi Reconnect
2023-10-28 18:18:16 -05:00
HomeSpan 871eba3c1d
Merge branch 'release-1.8.1-dev' into verbose_reconnect 2023-10-28 18:16:48 -05:00
HomeSpan eea2c44aae
Update README.md 2023-10-28 17:32:54 -05:00
HomeSpan 44db046e57
Update Reference.md 2023-10-28 17:22:27 -05:00
HomeSpan 2421b8d1b1
Update README.md 2023-10-28 17:13:24 -05:00
Gregg dee9491089 Merge branch 'release-1.8.1' of https://github.com/HomeSpan/HomeSpan into release-1.8.1 2023-10-28 17:06:42 -05:00
Gregg 81ee9e2dbc Added homeSpan.setWifiCallbackAll(int n)
Adds a second type of WiFi Callback that is called every time WiFi is established OR re-established after a disconnect.  Passes the number of times WiFi has been connected as an argument.
2023-10-28 17:06:40 -05:00
HomeSpan b41bb653dc
Update README.md 2023-10-28 09:59:52 -05:00
HomeSpan 688b51967e
Update Logging.md 2023-10-28 09:55:47 -05:00
HomeSpan 2d84f25ac4
Update Reference.md 2023-10-28 09:06:51 -05:00
Francois 2bda112780 Verbose WiFi Reconnect
Add the ability to turn off WiFi reconnect messages.
2023-10-27 08:17:06 -04:00
Gregg 4de61e5914 Change webLogCallback() to pass String as reference 2023-10-24 13:43:04 -05:00
Gregg 0f96d0fff6 Added homeSpan.setWebLogCallback(String (*f)())
Allows extension of initial table produced in WebLog, where f is a function that returns a String.  The returned String is copied into the WebLog HTML just before the </table> tag is printed in the initial table.
2023-10-22 18:23:25 -05:00
HomeSpan 34651307db
Merge pull request #631 from cccat6/master
Support the Non-English WiFi name
2023-10-22 10:21:12 -05:00
Gregg b15136d2d8 Merge branch 'release-1.8.1' of https://github.com/HomeSpan/HomeSpan into release-1.8.1 2023-10-22 10:09:25 -05:00
Gregg e0517a5964 Bumped release to 1.8.1 2023-10-22 10:09:22 -05:00
HomeSpan c89969cccd
Update README.md 2023-10-22 09:53:10 -05:00
HomeSpan 1494c6ebda
Update README.md 2023-10-22 09:52:35 -05:00
HomeSpan 831d3640cc
Update Reference.md 2023-09-15 18:41:03 -05:00
HomeSpan 30163c1214
Update README.md 2023-09-12 08:10:46 -05:00
Gregg 2e1c4cf7a0 Update 15-RealPushButtons.ino 2023-09-04 22:22:36 -05:00
Yitao Jiang 1cd01205a3
Support Non-English WiFi name 2023-08-20 20:05:47 +08:00
HomeSpan 8baf70994d
Update README.md 2023-08-04 06:44:39 -05:00
Gregg 3396a5ff96 Refactored Controller Structure and Add/Remove/List/Save Functions
Changed fixed-size array `struct Controller[MAX_CONTROLLERS]` to a dynamic linked-list of Controllers.  Re-coded all related functions.  MAX_CONTROLLERS no sets the size of any buffers but is only used to limit the ultimate size of the linked-list.

Saved about 1K of RAM since most of the time there are only 2 Controllers defined (as opposed to the 16 allowed).
2023-08-03 22:29:31 -05:00
Gregg 5a356432b3 Simplified `uint8_t *TLV<tagType, maxTags>::buf(tagType tag, int len)`
Also updated HAP.cpp to use new `uint8_t *TLV<tagType, maxTags>::buf(tagType tag, uint8_t *src, int len)`
2023-07-30 21:54:14 -05:00
Gregg a84429f930 Refactored TLV
* Added support for zero-length TLV
* Added SEPARATOR as a formal kTLVType (and updated listControllers() to use)
* Added `uint8_t *buf(tagType tag, uint8_t *src, int len);` to load buffer needing external memcpy (and updated listControllers() to use)
2023-07-30 21:37:47 -05:00
Gregg 17410e825e Completed adding LIST to HAPClient::postPairingsURL()
HomeSpan now correctly responds to pairing list requests
2023-07-29 08:35:01 -05:00
Gregg 7325baa1a5 Added HAPClient::listControllers()
Will be used for pairings list request
2023-07-29 01:21:55 -05:00
Gregg bf057e2fad modified HAP::receivedEncrypted() to use TempBuffer instead of fixed stack array 2023-07-28 19:51:56 -05:00
Gregg 131e5b1a92 Removed duplicate if(POST /pairings) 2023-07-28 19:38:16 -05:00
HomeSpan 42156b1622
Update ServiceList.md 2023-07-27 21:15:26 -05:00
Gregg 793f7882b1 Replaced appropriate snprintf() with asprintf() and used *m in sscanf
Optimized use of heap memory instead of stack memory for temporary variables, and makes code easier to read, provided all heap usage is free() at end of each function.

Also removed char *hostName as a member variable of homeSpan.  It's never actually used since MDNS constructs its own copy of hostName as needed.
2023-07-26 22:46:20 -05:00
Gregg 0f6e58435e Update Network.cpp 2023-07-26 20:35:27 -05:00
Gregg 62f68cb33c Upgraded TempBuffer logic to use .get() to return pointer
Next up: update Network.cpp to use client.available() and reduce fixed memory usage.
2023-07-26 06:27:54 -05:00
Gregg 5f9458e625 Converted static HTTP Buffer to dynamic TempBuffer
Saved about 8K in RAM!
2023-07-25 05:54:40 -05:00