Commit Graph

1163 Commits

Author SHA1 Message Date
Gregg 92ece5413f Removed requirement to include HAP Protocol in Accessory Information Service
HAP Protocol does not appear to be needed anymore (as of iOS 15?)
2022-04-08 17:54:50 -05:00
Gregg 17fa91da45 Merge branch 'dev' of https://github.com/HomeSpan/HomeSpan into dev 2022-04-08 17:46:35 -05:00
Gregg d20df43a58 Eliminated HAP Protocol Service and updated Examples 1-8
Experimentation reveals that the HAP Protocol Information Service no longer seems to be required by HomeKit.  Examples work fine without it.
2022-04-08 17:46:33 -05:00
HomeSpan 4d881c8447
Update Tutorials.md 2022-04-06 06:28:53 -05:00
Gregg 4ada3542cd Update 07-AccessoryNames.ino 2022-04-06 06:21:42 -05:00
Gregg 98f812ba0c Updating examples 1-7 to conform with latest iOS changes 2022-04-04 06:13:30 -05:00
Gregg 91f6ecb958 Updated Message Logging Example 9
Added LOG0() and variadic LOG1() messages.

Also needed to rename Accessory from "On/Off" to "On-Off" since HomeKit no longer allows "/" characters!
2022-04-03 07:21:43 -05:00
Gregg 240a995c86 Added LOG0() macro 2022-04-02 22:10:05 -05:00
HomeSpan ed306ff9ce
Update Logging.md 2022-04-02 22:07:29 -05:00
HomeSpan b564d25f61
Update Logging.md 2022-04-02 22:06:53 -05:00
HomeSpan 6a3e361214
Update Logging.md 2022-03-30 22:03:42 -05:00
HomeSpan 7a3b07f65d
Update Logging.md 2022-03-30 06:28:24 -05:00
HomeSpan c7a515b4be
Update Reference.md 2022-03-28 21:48:13 -05:00
HomeSpan ce343be55d
Update ServiceList.md 2022-03-28 21:42:13 -05:00
HomeSpan c54e355a61
Update Reference.md 2022-03-28 18:56:31 -05:00
HomeSpan 459360c4cb
Update Logging.md 2022-03-28 18:51:23 -05:00
HomeSpan f2de496fa1
Update Reference.md 2022-03-28 18:48:28 -05:00
HomeSpan c96bf8c590
Update Reference.md 2022-03-28 18:46:21 -05:00
HomeSpan 8c97cb1038
Update Logging.md 2022-03-28 18:41:49 -05:00
Gregg 0fbe0abccd Create Logging.md 2022-03-28 18:39:46 -05:00
HomeSpan 8a6a67410a
Update Reference.md 2022-03-27 18:50:48 -05:00
HomeSpan 6ca74f030d
Update Reference.md 2022-03-27 18:49:43 -05:00
HomeSpan 213a29c924
Update Reference.md 2022-03-27 18:41:29 -05:00
HomeSpan 55aa5fd6d3
Update Reference.md 2022-03-27 18:03:01 -05:00
HomeSpan 935c3f9810
Update Reference.md 2022-03-27 18:01:47 -05:00
HomeSpan 621f4ddd1e
Update Reference.md 2022-03-27 17:55:04 -05:00
HomeSpan fdd0ae7cff
Update Reference.md 2022-03-27 14:21:48 -05:00
HomeSpan 43e93da24b
Update Reference.md 2022-03-27 14:21:02 -05:00
HomeSpan 9ab50928f3
Update OTA.md 2022-03-27 14:19:31 -05:00
HomeSpan c5d9e70009
Update Reference.md 2022-03-27 14:13:45 -05:00
HomeSpan c928793dcc
Update Reference.md 2022-03-27 14:12:22 -05:00
HomeSpan 8e357f8605
Update Reference.md 2022-03-27 09:30:45 -05:00
HomeSpan 97a2238a09
Update OTA.md 2022-03-27 09:21:48 -05:00
HomeSpan a2094c7fb6
Update OTA.md 2022-03-19 22:18:18 -05:00
HomeSpan d706776c54
Update Reference.md 2022-03-19 22:13:52 -05:00
HomeSpan 9b55588039
Update OTA.md 2022-03-18 06:31:12 -05:00
HomeSpan 4254ff457f
Update OTA.md 2022-03-17 06:31:45 -05:00
HomeSpan 1475301855
Update Reference.md 2022-03-16 06:30:41 -05:00
HomeSpan 29b02c4f38
Update Reference.md 2022-03-15 22:47:07 -05:00
HomeSpan f813894d00
Update Reference.md 2022-03-15 21:02:03 -05:00
Gregg 057901b5bb Update src.ino 2022-03-14 22:14:59 -05:00
Gregg 6409157180 Completed all SpanOTA safemode logic and cleaned up previous iterations of the logic
Must document in safemode in API as well as discuss in OTA documentation.
2022-03-14 22:01:28 -05:00
Gregg ffdf0296c6 Dramatically simplified OTA enable check in safemode
Rather than auto-enable OTA if not already enabled in safemode, changed the logic to simply rollback to previous app if OTA was used to download a sketch that does not itself have OTA enabled, unless OTA was previously enabled without safemode.

To do:  Delete all complicated SpanOTA logic that (unsuccessfully) tried to track OTA status and check SHA246 partition codes to determine if reboot was OTA or Serial.  None of this is need, but some of the code may be useful for other things in the future.
2022-03-14 21:46:37 -05:00
Gregg 1b0c4835cb Progress on additional SafeMode logic to Auto-enable OTA 2022-03-13 14:42:19 -05:00
Gregg b6eb5afcbf Started work on auto-enabling OTA to start even if not enabled. 2022-03-13 10:19:11 -05:00
Gregg eac06129fc Moved all OTA logic into SpanOTA and completed "safeLoad" protocol 2022-03-12 16:31:50 -06:00
Gregg f3d5092340 SpanOTA in progress 2022-03-12 14:31:15 -06:00
Gregg 2f1044b013 Adding Custom Magic Cookie to OTA Partition
Will prevent uploading a non-HomeSpan sketch via OTA to an existing HomeSpan device.
2022-03-12 08:24:01 -06:00
Gregg 7ddbfd55cc Slight OTA cleanup plus confirmed that you cannot enable ROLLBACK in Arduino-ESP32
Since much of the Arduino-ESP32 library is precompiled, you cannot use -DCONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE to define this during compile time (it gets defined but is not used by the precompiled libraries).

TO DO:  create an NVS entry that flags whether last update was via OTA.  If so, automatically enable OTA regardless of enableOTA setting.  This would ensure that OTA cannot be disabled accidentally by uploading a non-enabledOTA sketch to  remote device.
2022-03-07 22:02:23 -06:00
Gregg 3336ac7fbe Small clean-up of OTA
Researching potential use of rollback of OTA.
2022-03-06 18:39:05 -06:00