Commit Graph

1034 Commits

Author SHA1 Message Date
HomeSpan 8dd9a40f77
Update Reference.md 2021-12-18 15:26:33 -06:00
Gregg 715adf44f1 Added setDescription(const char *) method to SpanCharacteristic
This allows you to add an optional "description" to a Characteristic.  This is not the same as the name of a Service and is generally not used by the Home App.  However, it appears to be consumed by the Eve app, which can be helpful in some circumstances when developing custom characteristics.
2021-12-17 06:44:27 -06:00
HomeSpan 0aba248888
Update Reference.md 2021-12-03 07:18:39 -06:00
Gregg a872111743 Fixed bug in CUSTOM_CHAR() when applied to STRING Characteristic
Created a new CUSTOM_CHAR_STRING(NAME,UUID,PERMISISONS,DEFVAL) macro specifically for STRING Characteristics
2021-12-03 07:02:25 -06:00
HomeSpan b63945b6dc
Merge pull request #196 from HomeSpan/master
Update dev branch to match final master for 1.4.2
2021-11-27 10:31:22 -06:00
HomeSpan 7b461f3108
Update README.md 2021-11-27 10:24:56 -06:00
HomeSpan 84cff6e877
Merge pull request #195 from HomeSpan/dev
Update to version 1.4.2
2021-11-27 10:18:41 -06:00
HomeSpan d902408b08
Update README.md 2021-11-27 10:15:28 -06:00
HomeSpan c492f51604
Update README.md 2021-11-27 10:14:34 -06:00
HomeSpan 6aff9bfa75
Update README.md 2021-11-27 10:14:11 -06:00
Gregg bc5299cf57 Updated version number to 1.4.2
Ready for release!
2021-11-27 09:48:07 -06:00
Gregg 83170306f5 Updated Blinker class for compatibility with Arduino-ESP32 v2.0.1
The update from Arduino-ESP32 2.0.0 to 2.0.1 contained significant changes to the structures used by the IDF for generic timers.  This broke the Blinker code (would not compile for ESP32-S2 and C3 chips).

The solution: Modified Blinker::isrTimer() to use a *generic* interrupt-clearing function when available (IDF version >= 4.0.0).  Below 4.0.0 the code continues to manually clear the interrupt flag by resetting specific structure variables, though the logic is simpler since this is only needed for the ESP32 chip (the S2 and C3 are not supported in earlier versions of Arduino-ESP32).

This provides for full compatibility with Arduino-ESP32 versions 2.0.1, 2.0.0, and 1.0.6.  The use of a generic interrupt clearing function when IDF>=4.0.0 will hopefully make this future-proof to any further changes by Espressif to the underlying timer structures.
2021-11-25 10:03:57 -06:00
Gregg d8bb51902f Fixed Bug in TimedWrites
The loop over TimedWrites incorrectly erased iterators inside a for-loop.  For some reason this never caused an issue on the ESP32, but crashed on the ESP32-C3.  Solution is to change the for-loop to a while-loop with proper handling of the iterator when an element is deleted.  This appears to fix the problem.
2021-11-24 18:27:55 -06:00
HomeSpan a8e6e643f9
Update Reference.md 2021-11-12 18:40:21 -06:00
HomeSpan 07eaef9523
Update Reference.md 2021-11-12 18:30:45 -06:00
Gregg 48b21df329 Created method setPairingCode(const char *s)
Allows for programmatic creation of Pairing Setup Code.  Not recommended, but added for a convenience - should use 'S' from CLI instead.
2021-11-12 18:01:27 -06:00
HomeSpan 8c93ac2e35
Update Reference.md 2021-11-12 06:58:06 -06:00
HomeSpan 8ffb62715e
Update Reference.md 2021-11-11 21:12:47 -06:00
HomeSpan 6801dfe4c8
Update Reference.md 2021-11-11 20:57:02 -06:00
Gregg b5f4592b29 Removed Characteristic::ConfiguredNameStatic() end updated Television Example
Characteristic::ConfiguredNameStatic() is no longer needed since you can now change permissions on ConfiguredStatic to remove PW with removePerms(PW).  Updated Television Example accordingly.

To Do:  Add getLinks() and setPerms/addPerms/removePerms to API Reference Documentation
2021-11-10 05:54:19 -06:00
HomeSpan fcf715d874 Added getLinks() method to SpanServices
This returns a vector of linked Services that can be used in a for-each loop as such:

for(auto services : getLinks()){ ... }

Must cast services into specific Service type to access anything not generic to the SpanService   class
2021-11-09 21:18:34 -06:00
HomeSpan 3f833beb74 Added ability to change permissions for Characteristics
New methods for Characteristics:

setPerms(uint8_t perms);
addPerms(uint8_t dPerms);
removePerms(uint8_t dPerms);

where perms and dPerms = PR|PW|EV...
2021-11-09 21:08:52 -06:00
HomeSpan 9de26715f0
Update Reference.md 2021-11-08 05:50:30 -06:00
Gregg 6f765e8988 Added non-notify option to setVal()
Second optional argument to setVal() determines whether or not HomeSpan sends notification of new value to HomeKit.  Default if left blank is "true" for backwards compatibility.
2021-11-07 20:45:44 -06:00
HomeSpan 835d49adc5
Merge pull request #181 from HomeSpan/release-1.4.1
Release 1.4.1
2021-10-31 19:33:46 -05:00
HomeSpan 0899bb1679
Update README.md 2021-10-31 17:56:58 -05:00
HomeSpan b202d5ba47
Update FAQ.md 2021-10-31 17:37:10 -05:00
HomeSpan 8d54be5308
Update FAQ.md 2021-10-31 17:35:09 -05:00
HomeSpan 08c92f8eb0 Update Span.h
Make Characteristic::Identifier required for Service::InputSource
2021-10-31 17:20:56 -05:00
HomeSpan 23bdd1372c
Update ServiceList.md 2021-10-31 17:04:47 -05:00
HomeSpan 9f68ffeca6
Update ServiceList.md 2021-10-31 16:50:52 -05:00
HomeSpan 7cd7aa28a0
Update ServiceList.md 2021-10-31 16:46:23 -05:00
HomeSpan f666f54b80
Update Categories.md 2021-10-31 16:41:17 -05:00
HomeSpan 31f9ec38b3
Update TVServices.md 2021-10-31 16:35:01 -05:00
HomeSpan 07060812b5
Update TVServices.md 2021-10-31 16:21:43 -05:00
HomeSpan 5b7a38f829
Update TVServices.md 2021-10-31 16:15:10 -05:00
HomeSpan f06bb4869a
Update Extras.md 2021-10-31 16:10:40 -05:00
HomeSpan 5ad030d471
Update Extras.md 2021-10-31 16:07:59 -05:00
HomeSpan f459635c75
Update TVServices.md 2021-10-31 15:57:38 -05:00
HomeSpan 9afb9f2cf5
Update TVServices.md 2021-10-31 15:52:58 -05:00
HomeSpan cd9da777a5
Update TVServices.md 2021-10-31 15:50:27 -05:00
HomeSpan f4b788839f
Update TVServices.md 2021-10-31 15:43:16 -05:00
HomeSpan 9b8f4d2b26
Update TVServices.md 2021-10-31 15:32:14 -05:00
HomeSpan 336ec18545
Update TVServices.md 2021-10-31 15:21:37 -05:00
HomeSpan 46aab531c8
Update TVServices.md 2021-10-31 10:21:28 -05:00
Gregg 49f40068b4 Merge branch 'dev+TV' of https://github.com/HomeSpan/HomeSpan into dev+TV 2021-10-31 10:03:20 -05:00
Gregg 6685768f5c Update Television.ino
Added `update()` logic for various key presses.
2021-10-31 10:03:18 -05:00
HomeSpan 4644d254c9
Update TVServices.md 2021-10-31 09:57:23 -05:00
HomeSpan fce9b85e24
Update TVServices.md 2021-10-30 23:23:24 -05:00
HomeSpan a55a697216
Update TVServices.md 2021-10-30 23:01:02 -05:00