Commit Graph

662 Commits

Author SHA1 Message Date
HomeSpan d02cfe63b7
Update Reference.md 2021-02-08 07:46:51 -06:00
HomeSpan 7b3358af10
Update CLI.md 2021-02-08 07:28:43 -06:00
HomeSpan 22c9dfd957
Update CLI.md 2021-02-07 21:10:51 -06:00
HomeSpan c499616b34
Update CLI.md 2021-02-07 21:04:09 -06:00
HomeSpan 9689db9773
Update CLI.md 2021-02-07 21:01:59 -06:00
HomeSpan 64fd64a8ba
Update QRCodes.md 2021-02-07 20:48:27 -06:00
HomeSpan 46ede137ee
Update Reference.md 2021-02-07 20:42:31 -06:00
HomeSpan 8453582626
Update Reference.md 2021-02-07 20:40:50 -06:00
HomeSpan 5e4c3f5127
Update CLI.md 2021-02-07 20:32:38 -06:00
Gregg 5c002708f9 Update version numbers 2021-02-07 19:25:59 -06:00
Gregg db3e1c4bb8 Added ability to specify optional sketch version number.
Specify with homeSpan.setSketchVersion(char *).
Read back with homeSpan.getSketchVersion().

Also, MDNS now broadcasts three new fields:

hspn = HomeSpan Version
sketch = Sketch Version
ota = "yes" if OTA enabled, else "no"

These are all optional to HAP but useful if trying to keep track of version updates when using OTA and Serial Monitor is not available.
2021-02-07 11:49:55 -06:00
Gregg 78b7900f19 Added ARDUINO_VARIANT to initial info output 2021-02-07 10:07:37 -06:00
Gregg 29470e4dd9 Completed OTA logic
OTA pasword now stored in NVS.  Use 'O' command to change from default.  Note password is stored as MD5 hash, and is therefore unrecoverable.  Changes to password DO NOT take effect until next reboot.  Password CAN be changed even if OTA has not been enabled for sketch.  Blank passwords are not allowed.

Stored password can only be erased with 'E' command.
2021-02-07 09:58:52 -06:00
Gregg 208905419c Added OTA logic - enable with homeSpan.enableOTA();
TO DO:  Add password for OTA (and require it)
2021-02-06 18:10:48 -06:00
Gregg 170f972d3b Fixed bug in pairing logic that would drop leading zeros when transmitting SALT
A 16-byte SALT with a leading zero would be sent as only a 15-byte number.  The chance of this occuring is 1 in 256, which is small but still significant.  Solution is to specify required size of MPI output in loadTLV.  This forces mbedtls_mpi_write_binary() to pad with leading zeros.

Also eliminated unused code (TLV pack_old).
2021-02-06 16:29:55 -06:00
Gregg 03e43e0bbb Added 'Q' command to change default Setup ID and store in NVS
Setup ID can now be stored in NVS and set dynamically with the 'Q' command.  However, homeSpan.setQRID(char *id) will override if present, but will not change the default stored in the NVS.  This default wil be used once again if homeSpan.setQRID() is removed from the sektch.

If the NVS is empty, the default is set to "HSPN" as in version 1.1.4.
2021-01-31 18:58:45 -06:00
HomeSpan 02cfe7bbcd
Update Reference.md 2021-01-29 21:27:57 -06:00
Gregg b2bd7da4ce Delete History.md 2021-01-29 21:25:42 -06:00
HomeSpan 97e6f87a08
Update QRCodes.md 2021-01-29 21:23:43 -06:00
HomeSpan 87916f78dc
Update QRCodes.md 2021-01-29 21:23:05 -06:00
HomeSpan 7f13c6d626
Update README.md 2021-01-29 21:22:07 -06:00
HomeSpan b216d053c4
Update QRCodes.md 2021-01-29 21:19:25 -06:00
HomeSpan eab2f2eca2
Update QRCodes.md 2021-01-29 21:17:43 -06:00
HomeSpan c21a58f54f
Update QRCodes.md 2021-01-29 21:14:58 -06:00
HomeSpan 96eb390530
Update QRCodes.md 2021-01-29 21:14:21 -06:00
HomeSpan 954b5ca3b0
Update QRCodes.md 2021-01-29 18:39:04 -06:00
HomeSpan f575beeab3
Update QRCodes.md 2021-01-29 18:09:57 -06:00
HomeSpan f6b02a125e
Update QRCodes.md 2021-01-28 22:04:37 -06:00
HomeSpan cfec57eff3
Update QRCodes.md 2021-01-28 22:00:37 -06:00
HomeSpan f8f692cc1f
Update QRCodes.md 2021-01-28 21:58:57 -06:00
Gregg ac973a0cf8 Update QRCode.png 2021-01-28 21:37:44 -06:00
Gregg 171ad8f803 Update QRCode.png 2021-01-28 21:36:08 -06:00
HomeSpan 8cc292e40a
Merge pull request #25 from HomeSpan/dev1.1.5
Dev1.1.5
2021-01-28 21:31:25 -06:00
Gregg f37e708f1a Delete QRCode.png 2021-01-28 21:30:57 -06:00
HomeSpan 8f13f68f19
Update QRCodes.md 2021-01-28 21:25:54 -06:00
Gregg bf5b0c0d92 Update QRCode.png 2021-01-28 21:23:46 -06:00
Gregg 9e4b068aba Update QRCode.png 2021-01-28 21:17:46 -06:00
Gregg 8fd82dd3cd Create QRCode.png 2021-01-28 21:15:24 -06:00
Gregg a39b1ede0b Created QR Code Image 2021-01-28 21:14:19 -06:00
HomeSpan 374de6deda
Update QRCodes.md 2021-01-28 21:10:05 -06:00
HomeSpan 3e50611e12
Update QRCodes.md 2021-01-28 21:06:48 -06:00
HomeSpan 6c224ec9cf
Update QRCodes.md 2021-01-28 18:28:03 -06:00
HomeSpan bd611918bb
Update QRCodes.md 2021-01-28 09:37:20 -06:00
HomeSpan 58991b22a6
Update QRCodes.md 2021-01-28 09:03:50 -06:00
HomeSpan 71a2892bd2
Update QRCodes.md 2021-01-28 08:17:11 -06:00
HomeSpan 571360e376
Update QRCodes.md 2021-01-28 07:39:55 -06:00
HomeSpan 7685f11a24
Update QRCodes.md 2021-01-27 18:34:57 -06:00
HomeSpan 181a7e5fe0
Create QRCodes.md 2021-01-27 18:17:46 -06:00
HomeSpan 17d8b94cfb
Update Reference.md 2021-01-26 19:26:34 -06:00
Gregg b6b835ad42 Created HapQR class in standalone HapQR.h file
Class used for the creation and storage of a pairing QR Code (just the text, not the actual graphic) from a HAP Setup Code, HAP Category, and HAP Setup ID.  The resulting QR Code text is output to Serial Monitor whenever the SetUp Code is generated or changed.  The user can type this text into any QR Generator to create a QR Code graphic for pairing the device to HomeKit (in lieu of creating a printed tag of the Setup Code formatted using the Scancardium font).

Though not needed for HomeSpan, this class implements all the settings and parameters (such as Version and Reserved) used to generate any Apple HomeKit QR Code.

This class is used internally by HomeSpan and is not intended for the end-user.
2021-01-26 19:13:07 -06:00