Commit Graph

718 Commits

Author SHA1 Message Date
HomeSpan 1261cb6548
Update Reference.md 2020-12-27 18:54:01 -06:00
HomeSpan 15c36e8784
Update Extras.md 2020-12-27 18:44:12 -06:00
Gregg b9656fea37 Updated version to 1.1.2 - ready for release 2020-12-27 13:34:45 -06:00
Gregg 8dc8a0bc48 Update 01-SimpleLightBulb.ino
Changed comments to reflect requirement that AccessoryInformation Service be defined before any other Services in an Accessory.
2020-12-27 12:58:00 -06:00
Gregg a1035bd911 Added validation check to ensure AccessoryInformation is always the first Service to be defined in an Accessory
Required by HAP (overlooked in original error-checking logic)
2020-12-27 12:47:03 -06:00
Gregg 69057d560a Converted `char *` to `const char *` in DEV_Identify() 2020-12-27 09:38:12 -06:00
Gregg b50db3f078 Cleaned up almost all compiler warning messages and cleaned up wifi connect message
1) Used `const char *` instead of `char *` where appropriate, including the need to create a dummy blank string for us in certain places.
2) Set initialization of WiFiClient to 0 instead of NULL, since WiFiClient is not a pointer (probably don't need to set it to anything since WiFiClient overrides the boolean operator anyway).
3) Cleaned up some of the messaging and logic when WiFi tries to connect so that users know to wait a bit.
4) Only remaining warning messages are for casting SpanService to (void *), which I think i unavailable (and is not forbidden).

To Do: Go through examples and check for warnings (will likely need to convert `char *` to `const char *` in many places.
2020-12-27 09:11:18 -06:00
Gregg 0b316de602 Added REQUIRED Macro
User can specifiy a REQUIRED minimum version on the HomeSpan Library for the sketch to compile.  If the library version is older, the pre-processor will halt the compilation with a #error output
2020-12-26 16:46:36 -06:00
Gregg 3af65a5774 Updated notification logic so that newValue as well as value gets updated by setVal() 2020-12-24 16:40:41 -06:00
Gregg cc748f346c Updated RFControl
Changed enum class PHASE back to simple uint8.  Was too complicated to have a dedicted structure just to represent HIGH and LOW.
2020-12-22 17:27:56 -06:00
Gregg e7e6d4de61 Added 'phase' method to RFControl
RFControl::phase() allows you to add either a HIGH or LOW entry (i.e. a single phase of a pulse.  RFControl::add() continues to add a full HIGH/LOW pulse so these changes are fully backwards compatible.
2020-12-21 22:07:58 -06:00
HomeSpan 417587facf
Merge pull request #4 from aaaidan/cli-docs-setup-code
Fix default setup code in CLI docs
2020-12-16 13:01:00 -06:00
Aidan Fraser c6bfcba674
Fix default setup code in CLI docs 2020-12-16 10:42:23 -08:00
HomeSpan 30d1a54c78
Update GettingStarted.md 2020-12-13 07:41:14 -06:00
HomeSpan f76e9b9256
Update README.md 2020-12-13 07:28:18 -06:00
HomeSpan f04fa674bd
Update README.md 2020-12-13 07:27:10 -06:00
HomeSpan 1ecd8589f9
Update README.md 2020-12-13 07:26:28 -06:00
HomeSpan 3f00962b24
Update README.md 2020-12-13 07:25:08 -06:00
HomeSpan 3c590ec054
Update README.md 2020-12-12 20:30:36 -06:00
HomeSpan 290fc80adc
Update README.md 2020-12-12 20:30:11 -06:00
Gregg 8b4d4cf32d Updated version to 1.1.1 2020-12-12 20:23:30 -06:00
Gregg a9bc186a90 Fixed problem with timeVal() function
had forgotten to initialize updateTime to zero at startup (how did this ever work?)
2020-12-12 18:34:39 -06:00
HomeSpan 58d0177df2
Update README.md 2020-12-07 06:56:53 -06:00
HomeSpan 2303e27e80
Update ServiceList.md 2020-12-07 06:54:17 -06:00
HomeSpan 7a96ee43a9
Update Reference.md 2020-12-07 06:53:04 -06:00
HomeSpan ee015c6152
Update Reference.md 2020-12-07 06:52:00 -06:00
HomeSpan badcfe53b4
Update Reference.md 2020-12-07 06:51:05 -06:00
HomeSpan 0ab2be1cb3
Update README.md 2020-12-07 06:38:12 -06:00
HomeSpan f13231563d
Update library.properties 2020-12-07 06:20:53 -06:00
Gregg 70d579e21f Added UUID for TargetHeaterCoolerState
This is missing for HAP-R2 documentation.  Was able to find within Apple HomeKit ADK GitHub repo.
2020-12-07 05:55:10 -06:00
Gregg 1eea70aa47 Update Services.h
Made Characteristic::PositionState **optional** for Service::WindowCovering.  This appears to be a bug/exception in HAP-R2.  Need to reflect this in on-line docs.
2020-12-06 15:07:45 -06:00
Gregg d849595bfe More updates to Accessory ID
* if Accessory ID is NOT specified, the default is aid=1+aid of last Accessory, with aid of very first Accessory always set to 1.
* aid of first Accessory must ALWAYS be set to 1 - if user over-rides with another value, error will be thrown
* validation now includes checking for duplicate aids, as well as ensuring the first Accessory is always aid=1
2020-12-05 13:50:24 -06:00
Gregg 1847478252 Added ability to specify "aid" for Accessories
If not specified, "aid" defaults to an index number representing the order in which the Accessories were created.   Values are stored as uint32_t  (which is more limited than HAP requirements of uint64_t, but makes the code easier).

TO DO:  Must add validation to ensure duplicate aid values are not used.
2020-12-05 12:41:33 -06:00
Gregg da489b4d94 Merge branch 'master' of https://github.com/HomeSpan/HomeSpan 2020-12-02 18:00:16 -06:00
Gregg 3ad4b5fdf8 Changed name of keynotes file since it now contains more than just setup-code diagrams 2020-12-02 18:00:10 -06:00
HomeSpan 7779557101
Update HomeKitPrimer.md 2020-12-02 07:20:04 -06:00
Gregg 2b4e3bfcfd Update version number to 1.0.1 2020-11-28 07:51:16 -06:00
Gregg 5468f8e89e Set architecture=esp32 in library.properties.
Also fixed some comments in Example 15.
2020-11-27 23:21:43 -06:00
HomeSpan 993edfa622
Update README.md 2020-11-27 22:53:53 -06:00
HomeSpan 85708089fe
Update Overview.md 2020-11-27 22:44:18 -06:00
HomeSpan 43159a92fa
Update Extras.md 2020-11-27 22:43:13 -06:00
HomeSpan b2b1c7d519
Update Extras.md 2020-11-27 22:42:49 -06:00
HomeSpan c5b6dd39f3
Update Extras.md 2020-11-27 22:41:44 -06:00
HomeSpan 1dd01fcacc
Update Overview.md 2020-11-27 22:37:10 -06:00
Gregg 2398ffe698 Added code for example GitHub sketches 2020-11-27 22:31:44 -06:00
HomeSpan 0c19ac1e02
Update GettingStarted.md 2020-11-27 20:09:26 -06:00
HomeSpan d754747dce
Update GettingStarted.md 2020-11-27 20:08:18 -06:00
HomeSpan cefd031cf0
Update Extras.md 2020-11-27 20:07:16 -06:00
HomeSpan 6789fc03a0
Update GettingStarted.md 2020-11-27 20:05:58 -06:00
Gregg e4e4821256 Merge branch 'master' of https://github.com/HomeSpan/HomeSpan 2020-11-27 19:59:12 -06:00