Commit Graph

808 Commits

Author SHA1 Message Date
Gregg 6d77e2559a Added setApFunction(); simplified enableAutoStartAP()
Simplified enableAutoStartAP() so it no longer takes any arguments.  It now simply enables the auto launch of the WiFi Access Point at start-up if WiFi Credentials are not found.

New method setApFunction() will now be used to set an alternative method for the WiFi Access Point.  This will be called anytime 'A' is typed into the CLI, which also covers the auto-launch of the AP at start-up a well as starting it via the Control Button, since both of these functions call processCommand('A').
2021-06-20 15:20:56 -05:00
HomeSpan fc01e37590 Created setWifiCredentials() method
To be used with user-define Access Point, but CAN be used to programmatically hardcode SSID and PASSWORD (not a good idea to do this!)
2021-06-20 06:37:09 -05:00
Gregg e3d081bb35 updated enableAutoStartAP to accept user-define function as argument 2021-06-19 21:36:18 -05:00
HomeSpan b53081dfc7
Update CLI.md 2021-06-19 08:39:55 -05:00
HomeSpan 67fd691ede
Update README.md 2021-06-15 22:00:08 -05:00
HomeSpan 835c647a4f
Update GettingStarted.md 2021-06-14 21:44:17 -05:00
HomeSpan f42e8740a2
Update README.md 2021-06-14 21:42:17 -05:00
Gregg d5c819b2d1 Merge branch 'dev' of https://github.com/HomeSpan/HomeSpan into dev 2021-06-14 21:35:28 -05:00
Gregg c91d5984ac Changed version in library.properties to 1.3.0 2021-06-14 21:35:26 -05:00
HomeSpan 22050532a9
Update Reference.md 2021-06-14 06:08:44 -05:00
HomeSpan 61db84ece7
Update Tutorials.md 2021-06-14 05:35:31 -05:00
HomeSpan e907449106
Update CLI.md 2021-06-14 05:34:04 -05:00
HomeSpan 765767573f
Update Tutorials.md 2021-06-13 22:13:46 -05:00
HomeSpan 0a3dbb99dc
Update CLI.md 2021-06-13 22:04:08 -05:00
Gregg ad11016b28 Completed Example 18 2021-06-13 21:56:39 -05:00
Gregg e94a9bba04 Updating Example 18; and set HomeSpan version to 1.3.0 2021-06-13 18:40:54 -05:00
Gregg 6356012fd6 Added 'V' command to CLI
This command erases all values of saved Characteristics
2021-06-13 14:49:36 -05:00
Gregg c7d82f74c6 Logic added to save setVal() status changes in NVS
Also created new Example 18 demonstrating NVS storage for an LED.
To do: Create CLI command to erase stored characteristics.
2021-06-13 10:55:06 -05:00
Gregg f4c9c430ef Replace restore() method with second optional parameter when instantiating Characteristic
To enable save/restore for a Characteristic, set second parameter to TRUE when instantiating.  Since first parameter was optional as well, this requires setting it as well.

Next up:  Must add logic to setVal() to store new value as well.
2021-06-13 09:20:13 -05:00
Gregg 40798b15cf Begin development of NVS Characteristic storage
Used method restore() to restore value.  To do:  Change this to a flag during instantiation of a new Characteristic instead of a separate method.
2021-06-13 08:45:11 -05:00
HomeSpan 49e3786618
Update Reference.md 2021-06-05 10:40:08 -05:00
Gregg 1dfd66bf25 Add homeSpan.enableAutoStartAP()
Enables auto-start of AccessPoint if WiFi Credentials not found.
2021-06-05 10:30:21 -05:00
HomeSpan d46fd3949d
Update FAQ.md 2021-05-30 21:07:15 -05:00
HomeSpan 571a350d5b
Update Reference.md 2021-05-30 20:57:25 -05:00
Gregg 83507abb41 Update src.ino 2021-05-30 13:48:28 -05:00
Gregg bda90c59ca Created SpanUserCommand()
Allows the user to add a command function to the Command Line Interface.  All User Commands are defined with a '@' prefix.

To Do:  Document this new feature.
2021-05-30 13:45:52 -05:00
HomeSpan 7ce04a70f4
Update Reference.md 2021-05-30 07:23:16 -05:00
HomeSpan 2309212d34
Update Extras.md 2021-05-30 07:21:19 -05:00
HomeSpan 5204eeaeef
Update Reference.md 2021-05-30 07:08:36 -05:00
HomeSpan 4dfb881780
Update README.md 2021-03-22 07:45:08 -05:00
HomeSpan da4665f44e
Update README.md 2021-03-21 22:52:42 -05:00
HomeSpan 52541d6be1
Update Extras.md 2021-03-21 22:51:43 -05:00
HomeSpan 9274f918f2
Update Extras.md 2021-03-21 22:50:22 -05:00
HomeSpan 165dffaebf
Update Extras.md 2021-03-21 22:49:28 -05:00
HomeSpan 76fcfc215c
Update Extras.md 2021-03-21 22:49:03 -05:00
HomeSpan 39fbed5526
Update Extras.md 2021-03-21 22:48:06 -05:00
HomeSpan 8ac275559a
Update Extras.md 2021-03-21 22:47:27 -05:00
HomeSpan 61e0b12cf1
Update Extras.md 2021-03-21 22:43:53 -05:00
HomeSpan 764b5fb06e
Update Extras.md 2021-03-21 22:40:08 -05:00
Gregg 03fcdac67e Merge branch 'dev' of https://github.com/HomeSpan/HomeSpan into dev 2021-03-21 22:37:41 -05:00
Gregg 8252c5390e Created ServoControl Example
Created in "Other Examples" and is based on Example 13 - WindowShade
2021-03-21 22:37:35 -05:00
HomeSpan bbf3650416
Update Extras.md 2021-03-21 22:34:05 -05:00
HomeSpan 2a4ebe9522
Update Tutorials.md 2021-03-21 18:26:12 -05:00
Gregg 54f7928204 Fixed bug in Example 13
WindowShade was incorrectly sending repeated event notifications to HomeKit!
2021-03-21 12:37:12 -05:00
Gregg 451a2885b1 Changed PwmPin to LedPin in all Tutorial Examples
Greatly simplifies use interface.  No need to specify or save channels.  And no need to even save pin number since that can be found using LedPin->getPin() method whenever needed.
2021-03-21 09:54:57 -05:00
Gregg d49bca9bbe Completed LedPin() and ServoPin()
Both classes check that total number of combined instantiations does not exceed 16.  ServoPin() has additional limit of only 8 instantiations.

DEPRECATED: PwmPin().  Keep for backwards compatibility only.
TO DO:  Update Tutorial Examples to replace PwmPin with LedPin, and update Extras.h documentations with LedPin and ServoPin.
2021-03-20 23:21:09 -05:00
Gregg a8dff0a7de Update PwmPin.cpp 2021-03-20 17:35:04 -05:00
Gregg 59e34fde05 Updated LedPin() 2021-03-20 17:19:47 -05:00
Gregg bc498c32e4 Created LedPin()
This is a replacement for PwmPin().   It keeps track of channel numbers internally, which greatly simplifies the user interface.  Starts by using the 8 Low Speed Timer channels and then moves to the 8 High Speed Timer channels if more than 8 LedPins are instantiated.  Throws a non-fatal error if more than 16 LedPins are instantiated, and ignores any attempts to set the duty cycle of those channels.
2021-03-20 17:14:19 -05:00
Gregg 65df97c563 Added ServoPin() class to PwmPin.h
Controls a 50-Hz servo motor using ESP32 built-in LED PWM.  Allows custom range for microseconds and degrees.
2021-03-20 12:20:43 -05:00