Commit Graph

1346 Commits

Author SHA1 Message Date
HomeSpan 1ace97984b
Update NOW.md 2022-10-16 10:01:52 -05:00
HomeSpan 495a7f81ec
Update NOW.md 2022-10-16 09:51:04 -05:00
HomeSpan ec11a56154
Update NOW.md 2022-10-15 17:20:38 -05:00
HomeSpan 11d37a7b39
Update NOW.md 2022-10-15 17:18:40 -05:00
HomeSpan 0325978a5b
Update NOW.md 2022-10-15 16:47:08 -05:00
Gregg 612394a052 Update RemoteTempSensor.ino 2022-10-15 10:20:21 -05:00
HomeSpan e220ba4b34
Update NOW.md 2022-10-10 06:44:34 -05:00
HomeSpan 496e968775
Update NOW.md 2022-10-09 18:07:14 -05:00
HomeSpan 46b51411f0
Update NOW.md 2022-10-09 17:34:52 -05:00
HomeSpan ba0496dd8e
Update NOW.md 2022-10-09 17:29:29 -05:00
HomeSpan 0625241f21
Update NOW.md 2022-10-09 17:23:24 -05:00
HomeSpan a7914d442b
Update NOW.md 2022-10-09 15:49:14 -05:00
HomeSpan 6b9a541bd3
Update NOW.md 2022-10-09 09:13:07 -05:00
HomeSpan ac47b35c23
Update NOW.md 2022-10-09 08:06:29 -05:00
Gregg f8bf0e00ef Create NOW.md 2022-10-09 07:24:45 -05:00
Gregg 8b3c09c3f4 Update RemoteTempSensor.ino 2022-10-08 22:26:06 -05:00
Gregg fffa3eb2ee Update RemoteTempSensor.ino
Added power-saving and deep sleep
2022-10-08 18:16:44 -05:00
Gregg 2d411bab82 Updated SpanPoint so that WiFi_AP_STA is only used if receiveSize>0
Next up: explore power-reducing modes and sleep modes for remote sensors to extend battery life.
2022-10-03 22:04:51 -05:00
Gregg 0d5d4a0ca0 Added RemoteTempSensor to RemoteSensor Example 2022-10-02 16:41:08 -05:00
Gregg ab21a0c96c Created Other Examples - RemoteSensors
Created MainDevice and RemoteDevice sketches
2022-10-02 10:14:09 -05:00
Gregg 23afdb3711 Completed all SpanPoint code
Allows for bi-directional transmission between main HomeSpan device and one or more remote devices.

To Do:  Create and test with Temperature Sensor Example
2022-10-01 15:33:11 -05:00
Gregg b7317c3b5f Added SpanPoint::send() functionality
Works as expected.

Next Up:  Modify send() logic so that channels are NOT scanned if device is a main HomeSpan hub.
2022-09-30 22:20:32 -05:00
Gregg c819426dec Moving HomePoint.h back into HomeSpan.h
Added SpanPoint::setAsHub(), which is called after homeSpan.begin() to set device as Hub so SpanPoint knows not to change WiFi channel.

Also added check to make sure there are no SpanPoint objects instantiated before a call to homeSpan.begin() (if it is called at all).
2022-09-30 17:27:57 -05:00
Gregg 72294bde8b Move all SpanPoint code into separate HomePoint.cpp and HomePoint.h files
This enables SpanPoint to operate as a standalone library with no reliance on anything in HomeSpan.

To Do: migrate all HomePeer code into SpanPoint.  This will yield a universal standalone HomePoint library that can be used for BOTH the receiver and the sender (which automatically means two-way communication is always possible)
2022-09-28 21:16:29 -05:00
Gregg 58683586bc Added SpanPoint::get()
This completes SpanPoint.  Next: rename HomePeer to be HomePoint.
2022-09-26 22:00:32 -05:00
Gregg 4f983051ce Created SpanPoint
Verified ESP-NOW is communicating correctly with HomeSpan.  Verified encryption works.  Next step - create linkages between incoming data and Services; create queue structure to transfer data.
2022-09-25 13:53:54 -05:00
Gregg 22cfa130b4 Created HomePeer
This is a self-contained library that is used for remote devices set up as HomeSpan Peers via ESP-NOW.
2022-09-24 16:49:32 -05:00
Gregg dbe4c268f4 Modified folder structure for "extras"
This allows the "src.ino" test file to once again properly compile without requiring modifications to any existing HomeSpan sketches.  This was needed to ensure src.ino can find object code in "extras", which is now required to use the new statusDevice() method.  Since the Arduino IDE only copies files that are in "src" folders, "extras" needed to be moved to "src/extras".  For backwards compatibility with all other sketches, the "extras" directory now contains stubs for the ".h" include files.
2022-09-24 08:20:22 -05:00
Gregg 66160e7c6c continued development of espnow 2022-09-22 20:26:34 -05:00
Gregg 4a4a5f8a6b Started development of ESP-NOW
Also, added WiFi.begin("none") to make sure all WiFi data is erased when requested.
2022-09-05 18:42:37 -05:00
HomeSpan 8975ec9922
Update Reference.md 2022-09-04 14:26:31 -05:00
Gregg 677b9b673c Update FeatherPins.h
Added BUILTIN_PIXEL for S2, C3, and S3 chips
2022-09-04 10:03:59 -05:00
Gregg 8b9487b9d4 Created homeSpan.setStatusPixel(float h=0, float s=100, float v=100)
This is now the official API method to set an RGB NeoPixel as the status LED.  It defaults to bright red unless an HSV color is specified.
2022-09-04 07:31:08 -05:00
Gregg 546c87e3ec Added setOnColor to Pixel
Allows user to set the color to be used for Blinker
2022-09-03 16:47:02 -05:00
Gregg 355a2dfd4d Updated rest of code to reflect latest version of statusLED
Removed all checks to see if statusLED is defined, since it will now ALWAYS be defined, even if the statusDevice is set to NULL.
2022-09-02 18:47:15 -05:00
Gregg f2e1f5bc70 Updated Blinker Class to allow for NULL Blinkable Device
If NULL, all functions are ignored and getPin() returns -1
2022-09-02 18:15:53 -05:00
Gregg 6fecf2c29f updating main code to incorporate new Blinkable class/interface 2022-08-28 18:32:52 -05:00
Gregg 294b8d8d71 Complete re-write of Blinker Class
Rather than use ESP32 timers, simply spawn a new task that turn on/off LED using simple delays.  By avoiding the use of the ESP32 timer, we are no longer limited by the number of Blinkers possible.  Also, Blinker relied on the timer interrupt, which crashed when it tried to call Pixel since Pixel in turn uses interrupts from the RMT.  Switching to spawned tasks is much cleaner and does not consume more CPU time since the timer interrupts were driven by CPU anyway.

Blinker class and generic LED class are now in extras.h.  Blinkable Interface is also in extras.h.

To Do:  Incorporate new Blinker class into HomeSpan code
2022-08-28 17:49:48 -05:00
Gregg fc76db092d started development of Blinkable Interface to allow generic LED to be used with Blinker 2022-08-27 17:33:08 -05:00
HomeSpan c286875640
Update README.md 2022-08-20 16:15:38 -05:00
HomeSpan 59aab1208b
Update README.md 2022-08-20 16:11:56 -05:00
HomeSpan d6d87c621d
Merge pull request #363 from HomeSpan/dev
Dev
2022-08-20 17:11:09 -04:00
HomeSpan 1f98388115
Update library.properties 2022-08-20 16:03:20 -05:00
HomeSpan 61f3c9ba81
Update README.md 2022-08-20 10:58:51 -05:00
HomeSpan ed6d2d1d46
Update README.md 2022-08-20 08:40:50 -05:00
Gregg f4698b8d59 Updated comments in Example 15 - RealPushButtons
Added description of different triggerTypes and the use of custom functions
2022-08-20 07:37:56 -05:00
HomeSpan a48746c2b3
Update FAQ.md 2022-08-17 21:05:17 -05:00
HomeSpan 30de6f8464
Update Reference.md 2022-08-17 06:45:44 -05:00
Gregg a11490e0a6 Merge branch 'dev' of https://github.com/HomeSpan/HomeSpan into dev 2022-08-17 06:29:29 -05:00
Gregg fbc60a67eb Added setTouchCycles() and setTouchThreshold() to SpanButton as static functions 2022-08-17 06:29:26 -05:00