Commit Graph

1872 Commits

Author SHA1 Message Date
Gregg 1b93c7e75b Merge branch 'release-1.9.1' of https://github.com/HomeSpan/HomeSpan into release-1.9.1 2024-06-26 22:08:39 -05:00
Gregg d7dbb5fee5 Update HomeSpan.h 2024-06-26 22:08:36 -05:00
HomeSpan 970f4d7ce8
Update README.md 2024-06-26 21:14:23 -05:00
HomeSpan 9b791e2ac3
Update Reference.md 2024-06-26 21:00:52 -05:00
Gregg f73c779913 Added "constantness" to all aspects of TLV8 code, including Characteristic Constructors 2024-06-25 21:59:23 -05:00
Gregg 2d25c044ae Allow TLV8 Characteristics to accept an initial value when instantiated
Also simplified up form of SpanCharacteristic init() template
2024-06-25 20:50:40 -05:00
Gregg 7a13b99942 Added initial method to contract TLV8 Characteristic; Added UUID static char to Services; Added hapName filter to getLinks() 2024-06-23 10:19:32 -05:00
Gregg c3c32dbc07 Changed SpanServices::getLinks() to template function
Allows return of Linked Services to be cast into a pointer to any Service type.  Default template if not specified is <SpanService *>
2024-06-21 21:36:55 -05:00
Gregg 2279c30510 Update HAP.cpp 2024-06-19 13:02:11 -05:00
HomeSpan 7de8f1abb4
Update TVServices.md 2024-06-16 09:10:52 -05:00
HomeSpan 8e2304bacb
Update README.md 2024-06-15 22:07:27 -05:00
Gregg 9653224aca Allow homeSpan.begin() to take dynamic char * instead of just constant string 2024-06-12 21:18:44 -05:00
Gregg c1b2d49da1 Added version.h containing check for Arduino-ESP32 Version 2
Also includes HomeSpan version number
2024-06-10 21:11:50 -05:00
HomeSpan b4a32e82bb
Update Reference.md 2024-06-09 07:31:35 -05:00
HomeSpan c0d1a93c52
Update README.md 2024-06-09 07:21:17 -05:00
HomeSpan 901807e47a
Merge pull request #862 from HomeSpan/master
update dev with any changes in master documentation
2024-06-09 08:12:01 -04:00
HomeSpan f09499359b
Merge pull request #861 from HomeSpan/structural
Structural->Dev
2024-06-08 21:54:13 -04:00
Gregg e10025bd54 Update HomeSpan.cpp 2024-06-08 20:32:39 -05:00
Gregg 7ab8354ed7 Deleted setMaxConnections() and DEPRECATED reserveSocketConnections
setMaxConnections() was deprecated many version ago and is now deleted

reserveSocketConnections() is no longer needed since new HomeKit architecture does not require more than a few connections - this function has been deprecated and if used will not do anything
2024-06-08 18:03:37 -05:00
Gregg 892c2247a3 Finished testing new evList functionality 2024-06-08 17:46:49 -05:00
Gregg 983e159adf Created evList to store notifications
Also updated all code to use hapList and deleted all references to **hap
2024-06-08 16:45:46 -05:00
Gregg 153ab451fd Moved Controller Class definition back to HAP.h instead of HomeSpan.h
As long as `class Controller` is forward-declared in HomeSpan.h, the definition can live in HAP.h
2024-06-05 13:32:15 -05:00
Gregg 9d29b73dac Fixed memory leak [needed to free `body` in tlvRespond()]
This hopefully addresses memory leak that occurs when not using a Home Hub and connections constantly drop and re-establish.

To do: must add back logic for notifications using new hap linked-list structure, and then delete static hap array code.
2024-06-02 20:57:41 -05:00
HomeSpan cce2dc59b4
Update README.md 2024-05-31 08:56:27 -05:00
Gregg dbfad7d222 initial change of hap[i] to linked-list from fixed array 2024-05-12 07:17:21 -05:00
Gregg 3643506d89 Move temporary keys for pairing/verification into separate structure
Confirmed pairing and verification continue to works as expected.
2024-05-11 13:29:07 -05:00
Gregg e0ec162938 Added logic to check for hap[i] disconnect and issue stop() when found
This cures memory leakage when using HomeSpan without a Home Hub.  Sockets are now properly closed when the Home App abruptly disconnects.
2024-05-11 07:43:11 -05:00
Gregg 747b8c3244 initial change in hap[i] array to reserve space according to socket number 2024-05-08 06:45:57 -05:00
Gregg be4825dacb Move "internal" SpanCharacteristic methods from public to private
As well as additional clean-up of organization and format of SpanCharacteristic prototype declarations.
2024-05-04 08:31:34 -05:00
Gregg 214286f4de remove deprecated SpanRange structure
Has been deprecated many versions ago.
2024-05-04 08:07:03 -05:00
Gregg 80a8935828 Moved definitions of non-template SpanCharacteristic methods from HomeSpan.h to HomeSpan.cpp 2024-05-03 06:36:25 -05:00
Gregg 8775a2df85 Eliminated use of exceptions in PSRAM.h and added -fno-exceptions
Added build_opt.h which include -fno-exceptions compiler instructions.  Seems to save about 29K of flash in compiled code (compiling for ESP32)
2024-05-02 20:45:30 -05:00
HomeSpan 1863cc4309
Update README.md 2024-04-29 21:37:54 -05:00
HomeSpan d523a27124
Update Tutorials.md 2024-04-29 21:36:06 -05:00
HomeSpan 638285f48f
Update README.md 2024-04-29 21:31:56 -05:00
HomeSpan a52a2ad432
Update README.md 2024-04-29 21:24:17 -05:00
Gregg 4af2bdbbe3 Add displayOrder to ServiceList.md
Run shell-script 'tools/makeServiceList'
2024-04-29 21:22:37 -05:00
HomeSpan 0c22bfb752
Update README.md 2024-04-29 15:45:34 -05:00
HomeSpan 2bdafb534e
Update README.md 2024-04-29 07:57:46 -05:00
HomeSpan 7843ce49a5
Merge pull request #843 from HomeSpan/tlvwork
Tlvwork into Dev
2024-04-28 22:52:04 -04:00
HomeSpan bdf25cbaf9
Update Reference.md 2024-04-28 20:41:16 -05:00
HomeSpan 96a08ea84b
Update Reference.md 2024-04-28 13:23:54 -05:00
HomeSpan 1267603e71
Update Reference.md 2024-04-28 12:59:42 -05:00
HomeSpan a8883c911d
Update Reference.md 2024-04-28 11:13:53 -05:00
HomeSpan db80dab963
Update Reference.md 2024-04-28 11:03:57 -05:00
Gregg 74d27485d5 Added homeSpan.setControllerCallback()
Also adds: homeSpan.controllerListBegin(), homeSpan.controllerListEnd()
Also adds: Controller::isAdmin(), Controller::getID(), Controller::getLTPK()

To accomplish this, needed to move Controller definition from HAP.h to HomeSpan.h

Also, converted Controller from struct to class to ensure Controller data is protected from being modified now that it is exposed through condstant iterators.
2024-04-28 08:15:04 -05:00
HomeSpan ee2e850505
Update TLV8.md 2024-04-27 16:14:24 -05:00
HomeSpan 7a796bac2f
Update Tutorials.md 2024-04-27 16:13:22 -05:00
HomeSpan 012c778f15
Update Tutorials.md 2024-04-27 10:47:52 -05:00
HomeSpan 0eec3920f4
Update TLV8.md 2024-04-27 10:45:18 -05:00