Commit Graph

822 Commits

Author SHA1 Message Date
Gregg 3a519bdc54 Added logic to check for OTA partitions
Warning will be thrown If OTA is enabled but partition table is not configured for OTA.  OTA will not be started.
2021-02-09 21:23:37 -06:00
Gregg 98cfde8aa9 Modified 'O' command so that a blank entry cancels the request to update the OTA password 2021-02-08 18:31:51 -06:00
HomeSpan 01d48e73ec
Update CLI.md 2021-02-08 12:33:51 -06:00
HomeSpan b0b2f6c753
Update CLI.md 2021-02-08 08:33:51 -06:00
HomeSpan 5554bec70f
Update CLI.md 2021-02-08 08:24:23 -06:00
HomeSpan 749e239c9f
Update Reference.md 2021-02-08 08:15:41 -06:00
HomeSpan dd04f9967d
Update CLI.md 2021-02-08 07:53:56 -06:00
HomeSpan 36f302f01e
Update CLI.md 2021-02-08 07:53:02 -06:00
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 68e57ecbbf
Merge pull request #26 from flashspys/patch-1
Fixed typo in comment
2021-01-31 17:11:09 -06:00
Felix Wehnert fbb06f15df
Fixed typo in comment 2021-02-01 00:07:33 +01: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