Commit Graph

620 Commits

Author SHA1 Message Date
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 77d436141a
Update README.md 2021-01-24 19:33:09 -06:00
Gregg 2a5d5c138b Update src.ino 2021-01-24 18:53:49 -06:00
HomeSpan a9bc348822
Merge pull request #24 from HomeSpan/Development
Create Release 1.1.4
2021-01-24 18:49:01 -06:00
Gregg 9b71d6928a Added QR Code logic
HomeSpan now broadcasts a Hashed Setup ID as MDNS "sh", which is used when pairing with a QR Code instead of a Setup Code.  A text version of the resulting QR code is output to the Serial Monitor whenever the 9-digit Setup Code is generated or changed.  The text version of the QR code can then be input into any QR Code Generator to create a pairable QR Code.

The default Setup ID used to create the Hashed Setup ID is "HSPN".  This can be changed with homeSpan.setQRCode(const char *id), where id is exactly 4 alphanumeric characters.  If not, the request to change the Setup ID is silently ignored and remains "HSPN."
2021-01-24 18:46:55 -06:00
Gregg 78cbd926f1 Updated licenses and version number
Change copyright years to 2020-2021, and updated version number to 1.1.4 in preparation for next patch.
2021-01-24 12:02:24 -06:00
Gregg 9f7d288d18 Ignore any '\r' characters received from Serial Monitor
This allows the Serial Monitor to send NL or CR/NL at end of each line.  A newline ('\n') must be at the end to terminate reading from the Serial Monitor, but any preceeding carriage returns are stripped out.
2021-01-23 20:55:06 -06:00
Gregg d68c34c53f Update HomeSpan.h
Fixed a few more compiler warnings related to const char *
2021-01-22 22:05:13 -06:00
HomeSpan 7048f7684f
Update Reference.md 2021-01-22 22:04:01 -06:00
HomeSpan 4808149b57
Update Reference.md 2021-01-22 21:59:11 -06:00
Gregg d41b335aee Cleaned up various compiler warnings when compiled with max warning level
Also added a missing check on hapServer existing before it is used (bug introduced in last update where hapServer became dynamically initialized).
2021-01-22 21:37:29 -06:00
Gregg 750a658241 Added new method homeSpan.setPortNum(port)
HomeSpan defaults to running the HAP Server on port 80 (the standard HTTP port).  This method allows the user to over-ride the default and have HomeSpan run the HAP Server on any other port.

ALSO:  In updating this portion of the code, identified an additional parameter to the ESP32 version of WiFiServer that allows one to specify the number of simultaneous Server connections.  The ESP32 default is 4, which suggests that the ESP32 was internally juggling connections that HomeSpan was keeping open (since the HomeSpan default is 8 connections).

This WiFiServer call has been updated to now specify both the port number AND the number of maximum simultaneous connections (to match whatever has been set by HomeSpan).  This may or may not result in improving performance when more than 4 clients are connected.
2021-01-22 09:45:50 -06:00
Gregg b87a3d1dc3 Added new method homeSpan.setHostNameSuffix()
Allows user to replace the 6-byte AccessoryID "suffix" in the hostName with a custom suffix, included a blank string.  To do: Add to documentation.
2021-01-21 08:07:57 -06:00
HomeSpan b4df9578ca
Update README.md 2021-01-09 17:19:11 -06:00
HomeSpan 099e90215b
Update README.md 2021-01-09 17:18:43 -06:00
HomeSpan a03adabc95
Merge pull request #18 from HomeSpan/Development
Merge Development into Master for Release v1.1.3
2021-01-09 13:37:38 -06:00
Gregg 3633580dd5 Update LICENSE 2021-01-09 13:14:25 -06:00
Gregg 42a0ee9c9b Update RemoteControl.ino 2021-01-09 13:13:23 -06:00
HomeSpan d0822ed98c
Update Extras.md 2021-01-09 13:10:26 -06:00
HomeSpan dc39483517
Update GettingStarted.md 2021-01-09 13:09:06 -06:00
HomeSpan 8e0e87daf9
Update Reference.md 2021-01-09 13:05:46 -06:00
Gregg dff13d4b08 Update version number to v1.1.3
Getting ready to release v1.1.3 patch
2021-01-09 12:55:31 -06:00
Gregg b8d4940772 Removed use of LED_BUILTIN in library and all examples
LED_BUILTIN is NOT defined for all ESP32 boards - some do not have a built-in LED!  Instead, Status LED now defaults to Pin 13, as opposed to LED_BUILTIN.  Also, added a new method, homeSpan.getStatusPin(), to return the pin number used for the Status LED, whether or not it remains the default (13) or is changed by user with homeSpan.setStatusPin(pin).  This method is now used in the DEV_Identify.h file for each example, instead of using LED_BUILTIN (which otherwise won't compile for boards without a built-in LED)
2021-01-09 12:51:35 -06:00
Gregg 8d55d0a60e Fixed WiFi Access Point Password Bug
Updated Network::getFormData() to properly read special characters (!#$, etc.) input into Access Point web page as part of password of SSID.
2021-01-09 08:09:50 -06:00
Gregg eae2037a33 Merge branch 'Development' of https://github.com/HomeSpan/HomeSpan into Development 2021-01-07 07:43:54 -06:00
Gregg dde3d5d90e Updated User Guide PDF 2021-01-07 07:43:44 -06:00
HomeSpan 1e7322a9b6
Update UserGuide.md 2021-01-07 07:42:50 -06:00
HomeSpan 96e11707a6
Update UserGuide.md 2021-01-07 07:41:36 -06:00
HomeSpan 91b7565c27
Update UserGuide.md 2021-01-07 07:15:59 -06:00
Gregg f9e317a3b1 Updated Access Point WiFi connection logic
Matches new logic in HomeSpan CLI, except that wait time cycles from 2 to 10 seconds in steps of 2 seconds, then repeats, since user is expected to be manually monitoring the process, and the Access Point auto times-out in 300 seconds anyway.
2021-01-05 20:42:29 -06:00
Gregg 368c7f6d69 Update Network.cpp 2021-01-05 20:05:46 -06:00
HomeSpan b43e670ed8
Update UserGuide.md 2021-01-04 07:40:38 -06:00
HomeSpan 66cb42abe0
Update CLI.md 2021-01-04 07:27:21 -06:00
HomeSpan 26c4342a30
Update Reference.md 2021-01-04 07:19:43 -06:00
HomeSpan a1f3f75ef4
Update Reference.md 2021-01-04 07:18:46 -06:00
HomeSpan 6e26524199
Update Overview.md 2021-01-04 07:12:24 -06:00
Gregg 0939bc5ade Revamped WiFi connection logic
WiFi connection now occurs asynchronously so that if WiFi is lost, or cannot be connected at start-up, the device still operates intead of blocking while it tries to connect.  The new logic should allow for a wider range of chips to connect.
2021-01-03 17:26:17 -06:00
Gregg 27b6bb7eba Added MAX_ACCESSORIES limit=41
Program now halts if more than 41 Accessories are defined.  This allows for a bridge to have 40 Accessories.  HAP limit is 150, but there is not enough memory in ESP32 to robustly handle more (testing up to 50 LightBulb Services worked, but was sluggish).
2021-01-02 21:45:12 -06:00
Gregg 3aa5456881 Fixed memory problem with sendEncrypyted()
Switched from using fixed buffer, httpBuf, to a TempBuffer to allow for dynamic allocation of memory when assembling and transmitting large blocks of data.  This was causing a memory overflow of the static httpBuf when responding to a getAccessories() request for a large number of Accessories.
2021-01-02 21:18:50 -06:00
HomeSpan a21383b82f
Update README.md 2020-12-31 19:33:51 -06:00
HomeSpan 5566dd08b1
Update Extras.md 2020-12-29 15:11:51 -06:00
HomeSpan 18eb358dc6
Create History.md 2020-12-29 08:39:52 -06:00
HomeSpan b7e6e1698f
Update README.md 2020-12-27 19:09:14 -06:00