Commit Graph

1847 Commits

Author SHA1 Message Date
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
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
HomeSpan d2d1b79c4d
Update TLV8.md 2024-04-27 10:44:30 -05:00
HomeSpan a92f73666a
Update TLV8.md 2024-04-27 10:40:34 -05:00
Gregg 3273f7f24d Completed Example 22-TLV8_Characteristics
Must update Television.md documentation as well as Television Example to reflect recent changes to the Characteristics Apple made - there seems to be less flexibility in what needs to be defined to use the input sources.

Also need to add DisplayOrder Characteristic to TV documentation.
2024-04-23 06:41:44 -05:00
Gregg a785c1f937 Merge branch 'tlvwork' of https://github.com/HomeSpan/HomeSpan into tlvwork 2024-04-22 22:49:58 -05:00
Gregg 3db4676b7d Created initial Example 22 - TLV8_Characteristics
Requires some debugging...
2024-04-22 22:49:55 -05:00
HomeSpan 20f74aa968
Update TLV8.md 2024-04-22 20:43:11 -05:00
HomeSpan c7f67225d6
Update TLV8.md 2024-04-21 22:08:04 -05:00
HomeSpan 0be3b0cd1b
Update Reference.md 2024-04-21 21:23:44 -05:00
HomeSpan 050a30f72c
Update Reference.md 2024-04-21 21:16:08 -05:00
Gregg 4e5d03f63f renamed CUSTOM_CHAR_TLV() macro to CUSTOM_CHAR_TLV8() macro 2024-04-21 15:18:22 -05:00
HomeSpan 04cb07a0fc
Update README.md 2024-04-21 12:45:27 -05:00
HomeSpan 059c58ca46
Update TLV8.md 2024-04-21 12:41:14 -05:00
HomeSpan 4334789d50
Update TLV8.md 2024-04-21 12:39:39 -05:00
HomeSpan fa25369ebb
Update TLV8.md 2024-04-21 12:37:51 -05:00
HomeSpan ccda8f04d9
Update TLV8.md 2024-04-21 10:31:10 -05:00
HomeSpan b995a75907
Update TLV8.md 2024-04-21 08:30:07 -05:00
HomeSpan 998bd873bc
Update TLV8.md 2024-04-21 08:27:00 -05:00
HomeSpan bfdf114ed3
Update TLV8.md 2024-04-21 07:46:01 -05:00
HomeSpan d51b74e1c1
Update TLV8.md 2024-04-21 07:06:36 -05:00
HomeSpan aa9d64cb58
Update TLV8.md 2024-04-20 20:17:02 -05:00
HomeSpan e83df601b2
Update TLV8.md 2024-04-20 20:08:53 -05:00
HomeSpan e0f593bc2e
Update TLV8.md 2024-04-20 19:50:46 -05:00