mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-25 11:46:31 +00:00
Add ESP32 experimental support GPIOViewer when `define USE_ESP32_GPIO_VIEWER
` is enabled
This commit is contained in:
parent
6768ebc2ac
commit
9d27f395d8
@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
## [13.3.0.2]
|
## [13.3.0.2]
|
||||||
### Added
|
### Added
|
||||||
- HASPmota type `chart` (#20372)
|
- HASPmota type `chart` (#20372)
|
||||||
|
- ESP32 experimental support GPIOViewer when ``define USE_ESP32_GPIO_VIEWER`` is enabled
|
||||||
|
|
||||||
### Breaking Changed
|
### Breaking Changed
|
||||||
|
|
||||||
|
@ -124,6 +124,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl https://ota.tasm
|
|||||||
- NeoPool hydrolysis FL1 and Redox flag [#20258](https://github.com/arendst/Tasmota/issues/20258)
|
- NeoPool hydrolysis FL1 and Redox flag [#20258](https://github.com/arendst/Tasmota/issues/20258)
|
||||||
- Support negative power on BL0942 using index 5..8 [#20322](https://github.com/arendst/Tasmota/issues/20322)
|
- Support negative power on BL0942 using index 5..8 [#20322](https://github.com/arendst/Tasmota/issues/20322)
|
||||||
- ESP32 used UART information
|
- ESP32 used UART information
|
||||||
|
- ESP32 experimental support GPIOViewer when ``define USE_ESP32_GPIO_VIEWER`` is enabled
|
||||||
- Berry `introspect.set()` for class attributes [#20339](https://github.com/arendst/Tasmota/issues/20339)
|
- Berry `introspect.set()` for class attributes [#20339](https://github.com/arendst/Tasmota/issues/20339)
|
||||||
- HASPmota `haspmota.page_show()` to change page [#20333](https://github.com/arendst/Tasmota/issues/20333)
|
- HASPmota `haspmota.page_show()` to change page [#20333](https://github.com/arendst/Tasmota/issues/20333)
|
||||||
- HASPmota type `chart` [#20372](https://github.com/arendst/Tasmota/issues/20372)
|
- HASPmota type `chart` [#20372](https://github.com/arendst/Tasmota/issues/20372)
|
||||||
|
@ -17,6 +17,12 @@
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
//#define USE_ESP32_GPIO_VIEWER
|
||||||
|
#ifdef USE_ESP32_GPIO_VIEWER
|
||||||
|
#include <gpio_viewer.h> // Must me the first include in your project
|
||||||
|
GPIOViewer gpio_viewer;
|
||||||
|
#endif // USE_ESP32_GPIO_VIEWER
|
||||||
|
|
||||||
// Location specific includes
|
// Location specific includes
|
||||||
#ifndef ESP32_STAGE // ESP32 Stage has no core_version.h file. Disable include via PlatformIO Option
|
#ifndef ESP32_STAGE // ESP32 Stage has no core_version.h file. Disable include via PlatformIO Option
|
||||||
#include <core_version.h> // Arduino_Esp8266 version information (ARDUINO_ESP8266_RELEASE and ARDUINO_ESP8266_RELEASE_2_7_1)
|
#include <core_version.h> // Arduino_Esp8266 version information (ARDUINO_ESP8266_RELEASE and ARDUINO_ESP8266_RELEASE_2_7_1)
|
||||||
@ -892,6 +898,15 @@ void Scheduler(void) {
|
|||||||
#ifndef SYSLOG_UPDATE_SECOND
|
#ifndef SYSLOG_UPDATE_SECOND
|
||||||
SyslogAsync(false);
|
SyslogAsync(false);
|
||||||
#endif // SYSLOG_UPDATE_SECOND
|
#endif // SYSLOG_UPDATE_SECOND
|
||||||
|
|
||||||
|
#ifdef USE_ESP32_GPIO_VIEWER
|
||||||
|
static bool gpio_viewer_wifi_connected = false;
|
||||||
|
if (!gpio_viewer_wifi_connected && !TasmotaGlobal.global_state.network_down) {
|
||||||
|
gpio_viewer_wifi_connected = true;
|
||||||
|
gpio_viewer.setSamplingInterval(200); // You can set the sampling interval in ms, if not set default is 100ms
|
||||||
|
gpio_viewer.begin();
|
||||||
|
}
|
||||||
|
#endif // USE_ESP32_GPIO_VIEWER
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop(void) {
|
void loop(void) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user