Commit Graph
161 Commits
Author SHA1 Message Date
FlorianandFlorian 3cd7c92d8f [SYS] Fix ESP8266 discovery publications (#2100)
Co-authored-by: Florian <1technophile@users.noreply.github.com>
2024-11-10 08:24:13 -06:00
FlorianandFlorian c234afa9c8 [SYS] Fix connection validation on unknown indexes and improve erase method (#2075)
Before this fix, connections with Index 1 and 2 were supposed valid when not present in the configuration, generating attempts to connect with those indexes.
Also improve the erase config by adding an erase when the config file is not present (ESP is connected to WiFi without the config file). This way the ESP will not reconnect to the WiFi AP.

Co-authored-by: Florian <1technophile@users.noreply.github.com>
2024-10-01 11:48:39 -05:00
FlorianandFlorian 3187ed6154 [SERIAL] Enable SERIAL to X communication (#2068)
Add Serial as a communication layer so as to transmit data to/from serial
Enable discovery of BT sensors through serial
Add serial heartbeat

Change discovery principle for interval and intervalacts, keep them always discovered and deactivate adaptivescan when changed. Instead of removing their discovery when adaptive scan is activated

Increase JSON_MSG_BUFFER_MAX as we are now using const char* and it requires more memory for Arduino Json Deserialization

Co-authored-by: Florian <1technophile@users.noreply.github.com>
2024-09-26 06:55:26 -05:00
FlorianandFlorian 0d338cc5c5 [LED] Add LED STRIP macros and a third Addressable pin (#2063)
* [LED] Add LED STRIP macros and a third Addressable pin

---------

Co-authored-by: Florian <1technophile@users.noreply.github.com>
2024-09-19 20:36:46 -05:00
FlorianandFlorian 4b20976a08 [BLUFI] Add Blufi activation and deactivation at runtime (#2058)
Co-authored-by: Florian <1technophile@users.noreply.github.com>
2024-09-17 09:32:20 -05:00
FlorianandFlorian 435b8ca3d9 [LED] Refactor LED handling (#2051)
Refactor LED handling into a library
Use a task instead of relying on the loop for precise timing

Co-authored-by: Florian <1technophile@users.noreply.github.com>
2024-09-13 09:55:56 -05:00
FlorianandFlorian 5d6f735058 [SYS} Improve queue performance whenb Using Ethernet and low interval between scan (#2052)
Add also a msgrcv (messages received) indicators into SYStoMQTT to measure the performances

Co-authored-by: Florian <1technophile@users.noreply.github.com>
2024-09-10 16:33:46 -05:00
puterboy c5b9bcb4cb [DISPLAY] Removed obsolete pubOled stub and calls (#2039) 2024-08-29 10:40:03 -05:00
FlorianandFlorian 5492e334dc [SERIAL] Add the capability send info to Serial instead of/added MQTT (#2030)
* [SERIAL] Add the capability send info to Serial instead of/added MQTT

Add the capability to send json data to Serial as a communication layer, added/instead of MQTT

* Use delay rather than vTaskDelay

---------

Co-authored-by: Florian <1technophile@users.noreply.github.com>
2024-08-27 13:23:42 -05:00
FlorianandFlorian f9a5c6961a [SYS][BREAKING] Add gateway states, Offline mode and refactor sleep (#2020)
Gaterway states to improve LED management
Make the sleep function accessible outside BT
BREAKING remove sleep for ESP8266
BREAKING lowpowermode API changed to powermode and new mode definition

Co-authored-by: Florian <1technophile@users.noreply.github.com>
2024-08-23 16:55:04 -05:00
FlorianandFlorian 068c2e457a [LED] Avoid gpio error message at start and fix led macro (#2017)
Co-authored-by: Florian <1technophile@users.noreply.github.com>
2024-08-22 14:09:49 -05:00
FlorianandFlorian f655f4fda0 [LED] Add ON Led status (#2011)
ON per default at start, never OFF unless the board loose power or the program does not start

Co-authored-by: Florian <1technophile@users.noreply.github.com>
2024-08-16 16:49:14 -05:00
Florian 8fd672de45 [LED] Add capability to change second RGB led function (#2009)
When using different pins for each RGB led add the capability to change the function assignment to led2
2024-08-16 11:27:16 -05:00
Florian 8a28bb2cf8 [SERIAL][BREAKING] RS232 change to SERIAL GATEWAY (#2008)
Make the RS232 more generic by converting it to a Serial Gateway
Add the capability to decode BLE data coming through Serial
2024-08-16 11:23:39 -05:00
FlorianandFlorian 1c942a06cc [SYS] Refine json buffer maximum size (#2005)
Co-authored-by: Florian <1technophile@users.noreply.github.com>
2024-08-15 07:57:13 -05:00
Michał Leśniewski 8537b7498d [SYS] Introduce MQTT Broker mode (#1988) 2024-07-27 17:40:47 -05:00
Michał Leśniewski 9257433a50 [SYS] Use PicoMQTT for MQTT communication (#1954)
* Update Arduino core for selected configurations

* Use PicoMQTT for MQTT communication
2024-07-03 11:39:58 -05:00
Florian 0a1ee69a72 [SYS] Fix default connection (#1966) 2024-06-12 12:17:12 -05:00
Florian 676a62fecb [OTA] Add Github Digicert cert hash check (#1965)
to avoid loading a deprecated certificate
2024-06-12 12:16:48 -05:00
Florian e321448db0 [OTA] Switch OTA server to ota.openmqttgateway.com (#1962)
due to Github cert change
2024-06-12 07:50:41 -05:00
Florian 0db67f75aa [SYS] Add connection fallback capability (#1950)
This feature enable to rotate among the connection parameters index to find a valid one when the current MQTT connection is not working
2024-05-22 05:48:48 -05:00
Florian f98474bed0 [SYS] Multiple connections management (#1947)
Enable the management of different connections at runtime with a set of certs for each.
Add parameters to the WiFi Manager onboarding, client certificates, and certificate validation
2024-05-20 09:30:49 -05:00
Florian 743083cbfe [ONBOARD] Use Gateway short name macro (#1943) 2024-05-06 11:29:52 -05:00
Florian 2065d57e11 [BOARDS] Remove Arduino boards (#1929) 2024-04-10 15:48:05 -05:00
Sami Salonen 5432016c29 ESP32 JSON buffer size fixed for RuuviTag_RAWV2 (#1906)
816 bytes is just enough for parsing RuuviTag_RAWV2
json properties.

Resolves #1905

Signed-off-by: Sami Salonen <ssalonen@gmail.com>
2024-03-04 12:46:49 -06:00
Florian ef07a339ab [SYS] Avoid logging sensitive information on serial (#1879)
WiFi Manager log level to Notify
Remove MQTT information to serial
Remove system information to serial when changing with WebUI
2024-01-27 17:32:29 -06:00
Florian f548351ea4 [SYS] Increase WiFi timeout (#1864)
Enable to have a more reliable connection with some AP like TP-LINK EAP225
2024-01-11 11:46:27 -06:00
Florian 8b204f2911 [SYS] Fix default adjustable setting when not using discovery and boolean init (#1825) 2023-12-06 10:56:05 -06:00
Florian eb5b8fa291 [SYS/BT] Semaphores and new BT Controller (#1819)
Add semaphore to the enqueue calls to avoid concurrency issues
Add new BT controller to avoid scan evt timeout bug
2023-12-01 07:15:07 -06:00
DigiH 5421f0e995 [DOCS] typo fixes (#1816) 2023-11-26 13:07:18 -06:00
Florian 83137f6ac9 [SYS] Publish the reboot reason with retain flag (#1802)
So as to have the information stored on the MQTT broker
Also remove stopProcessing, not necessary as we follow by a restart
2023-11-14 08:53:50 -06:00
Florian cf285fba15 [INDICATOR] Dimmable RGB (#1801) 2023-11-14 07:34:55 -06:00
Florian 811bc1f608 [WM] Check input fields content before saving (#1795)
Avoid entering nonvalid data into the input fields by checking their content, also hiding passwords, and making the relevant fields compulsory
2023-11-09 20:22:14 -06:00
Florian 029409c0c3 [SYS] Implement a central queue (#1767)
to avoid concurrency issues when modules or/and gateways want to publish data
2023-11-08 07:26:21 -06:00
Florian ca9ef664ab [SYS] Reduce default WiFi timeout when changing it (#1789)
To avoid the WDT to trigger before the end of the connect result
2023-11-02 11:24:16 -05:00
Florian 99de6ef4a6 [SYS] Password management improvements (#1787)
* Use one single password for Access point, OTA and WebUI access
* Enable to change the password during WM onboarding, with the WebUI, and MQTT command
* Remove the default password during the first configuration to connect to the AP
* When using the last 8 digits of the MAC as the password, it can now be changed
* Remove gateway password sending to client
2023-11-02 09:10:20 -05:00
Florian dd5e565788 [SYS] Configuration portal for Ethernet board and HA link to config (#1761)
* [SYS] Configuration portal for Ethernet board

Enable Wifi Manager as a configuration portal for Ethernet boards, also leverage the Wifi Access point as a fallback connectivity method

Add link to the WebUI from HA and reduce key length

* Remove unnecessary environment

Now that one environment cans support wifi and ethernet, merge the 2
2023-10-03 07:33:47 -05:00
Florian 246423a8a8 [LORA] Improvements, change frequency, webUI, Oled support, add boards (#1742)
* [LORA] Capability to change LORA frequency and Add OLED

Merge of the 2 environments for TTGO V1

* Merge messages keys with upper level json

* Id as a sub topic

* Add display and state measures

* Add frequency configuration through WebUI

* Add parameters

* Add auto discovery

* Add node example for ttgo lora32 v1

* Add environments and fix scope

* Support for sync word as a byte

* Fix TX Power setting

* Add LoRa gateway description

* Add onlyknown filter
2023-09-27 11:12:55 -05:00
Florian 8a124c8841 [SYS] Increase mqtt username, base topic, otapassword and mqtt password max length (#1757)
fix #1746
2023-09-24 10:10:06 -05:00
Florian 46616d9fa8 [SYS] Increase default portal timeout to 4 minutes (#1751) 2023-09-21 16:10:59 -05:00
Florian bfca747d4b [SYS] Add alpn (#1745) 2023-09-14 18:11:46 -05:00
Vitaliy DandDigiH 2aa4368538 [SYS] User friendly manual network configuration (#1715)
* User friendly manual network configuration

* Add manual network config to the docs

* Add manual network config to the test env

Co-authored-by: DigiH <github@digih.net>
2023-08-05 13:41:57 -05:00
Florian 375ce91ece [SYS] Add global task watchdog timer (#1724) 2023-08-03 06:48:25 -05:00
Florian e673788da5 [OTA] Fix macro check to avoid having the regular new update check (#1723) 2023-08-02 08:45:41 -05:00
Florian a6c0a3b1d4 [SYS] Add save option to discovery and ohdiscovery key and remove discovery for Arduino boards (#1696)
Enabling to keep discovery off if required

Remove Mqtt discovery for Arduino UNO and ATMEGA
2023-07-30 17:34:58 -05:00
Die Peter Pan 959c3afc6f [SYS] Extend Wifi mode and power change to ESP8266 (#1680)
Extend Wifi mode and power change to ESP8266
 (Fix the spelling of setESPWifiProtocolTxPower)
2023-06-22 14:17:24 -05:00
Florian 4d8ba2a680 [SYS] Better handling of certs and OTA checks (#1695)
Add a macro to enable removal of update checks
Separate certificates from user_config.h
Consider latest version as the default
Do not use a cert if the url is not
Simplify AWS macro scope
2023-06-22 13:03:22 -05:00
Florian ad4e4b55c7 [IND] Fix red led display (#1629)
Fix critical indicator not working on development branch
2023-05-01 16:27:51 -05:00
Die Peter Pan abeef870c7 [HM-RD] Added leak/water detection sensor with ESP32 deep sleep / sensor wake (#1615)
Added leak/water detection sensor with ESP32 deep sleep / sensor wake
2023-04-25 17:14:49 -05:00
mrickma 4f3bb432e5 [INDICATORS] Neopixel 2leds (#1596)
* Add Adafruit NeoPixel library #defines

* Currently FastLED causes rapid reboots on ESP32C3 boards when OMG signals.
  Onboard RGB LEDs can be adressed more reliably with the NeoPixel library.
  Define RGB_INDICATORS=2 to use this addition.
* rebase fix: adapt to "Bump ESP32" changes in development

* Add build environments for the Espressiv ESP32-C3-DevKitC-02 board

* esp32c3-dev-c2-ble and esp32c3-dev-c2-ble-no-serial environments both
  use the Adafruit NeoPixel library for the onboard RGB LED as FastLED
  causes rapid reboots.

* Only occasional reboots of this board occure when serial output is not
  read. The -no-serial version further improves stability.

* Add a build environment for the Espressiv ESP32-C3-DevKitC-02 board

* The esp32c3-dev-c2-ble offers a reasonable compromise between logging
  and stability of OMG on this board.
2023-04-10 10:44:04 -05:00