Leon Kiefer
10a9d00aaf
Added clang-format ( #623 )
...
* added .clang-format
* added names to travis jobs
removed deprecated travis option
* check github action
* added .gitignore
2020-06-09 16:09:23 -05:00
Florian
661ef9c55e
Refactor BLE gateways ( #617 )
...
* Refactor BLE gateways:
-merge HM10 and ESP32 code
-publish sensor values with the other BLE device parameters to avoid MQTT multiple publication
-make uniform the case of mac adress id between HM10 and ESP32
-add the possibility to remove service data publishing either when sensors is recognised or not
-correct manufacturing data display
-merge process cleargrass methods
-check service data validity before processing
2020-06-05 08:09:49 -05:00
Florian
0afcb61717
Correct spelling mistake
2020-05-23 16:07:37 -05:00
Florian
a82bbe684a
Optimizations when using low power mode ( #608 )
2020-05-07 17:28:27 -05:00
Jonathan and Jonathan Wells
cf641851af
Added HTU21 Sensor ( #588 )
...
* Added HTU21 Sensor Support
Co-authored-by: Jonathan Wells <jonathan-wells@oist.jp >
2020-04-29 08:22:17 -05:00
Florian
30147140bd
Add M5 boards compatibility and low power mode ( #586 )
2020-04-26 19:56:10 -05:00
Florian
1385ddfa8d
Bypass for ESP not reconnecting by WIFI automaticaly the second time ( #580 )
...
https://github.com/espressif/arduino-esp32/issues/2501
2020-04-09 09:19:55 -05:00
Florian
d5724bbf1f
Correct Arduino boards build errors
...
Add the necessary macros and move the new OTA function to an appropriate location (for ESP only)
2020-04-08 15:49:09 -05:00
Florian
26501b2176
Recover ESP8266 build and ESPWifiManualSetup
...
#563 Move protocol change method outside of wifimanager scope
and correct build error for ESP8266
2020-04-08 15:14:14 -05:00
Florian
bd72075349
refactor connection mng on ESP32 and ESP8266 ( #575 )
...
enable after ATTEMPTS_BEFORE_BG
and ATTEMPTS_BEFORE_BG to try another Wifi protocol
#563
2020-03-28 20:46:30 -05:00
Florian
f991b209e5
Add version into SYStoMQTT gateway status
...
#537
2020-03-22 20:29:21 -05:00
Florian
85517e842b
[WM] enable automatic erasing of configuration for ESP8266
2020-02-12 21:48:21 +01:00
Florian
f3c9d6dd90
Lean on Arduino log library instead of custom logging methods ( #546 )
...
* Lean on Arduino log library instead of custom logging methods
2020-02-09 16:01:52 +01:00
Lars Wessels
a99d5fb670
added support for DS1820 1-wire temperature sensor(s) ( #538 )
2020-01-23 12:11:29 -06:00
Martin Korbel
4115f2a723
Add support for weather stations ( #532 )
...
* Add support for weather stations
* Add configuration for ESP8266
2020-01-20 21:04:58 +01:00
Florian
aeb00c4a7a
correct build error when using ESPWifiManualSetup
...
#529
add a test environment so as to verify this functionnality on [CI]
2020-01-14 20:59:01 +01:00
Florian
d4280ffde3
[IR] long long value and hex not taken into account
...
Nox we can process long long values and hex key when doing MQTTtoIR.
Also remove simpleReceiving as it only enable to use NEC or Raw
2020-01-11 15:45:50 +01:00
Florian
a1cfd57c23
Publish discovery msg at start once
...
#448
2020-01-09 21:16:15 +01:00
Florian
c524f04d1f
Replace fixed allocation of json buffer ( #520 )
...
* Replace fixed allocation of json buffer
by a dynamic one, and simplify trace function of json objects
* differentiate the change depending on board memory size
to make it works with UNO
2020-01-02 22:30:20 +01:00
Florian
db8df1ddf6
Hass discovery improvments ( #512 )
...
Rename set commands to config
correct json buffer size and gateway name
replace state to cmd
replace set by config
add restart and erase command
add unicity to gateway command switches
BLE devices shouldn't be child of the gateway
make the BTtoMQTT topic consistent with other definitions
2019-12-20 23:01:56 +01:00
Florian
ae33ea7458
publish discovery once at each MQTT connection with retain flag set true ( #507 )
...
* publish discovery once at each MQTT connection with retain flag set to true
#448
2019-12-14 19:17:09 +01:00
Florian
e44717bac7
add wifi advanced setup into user_config.h ( #506 )
...
* add wifi advanced setup into user_config.h
#496
* add advanced network config for wifi
2019-12-14 18:18:30 +01:00
1technophile
7f9d8d18da
Apply VSC auto format to the code and indent macros for readability
2019-12-14 17:14:36 +01:00
1technophile
f7ec81ffaa
remove string usage for topic comparison
2019-12-14 11:10:12 +01:00
1technophile
7f16d00a55
Change topics concatenation method
...
Correct regression introduced by #503
Nevertheless this method needs to be optimized to avoid the use of string.
2019-12-13 23:25:09 +01:00
Florian
7384455fb9
Improve Wifi automatic reconnect for ESP32 ( #504 )
...
* do not launch a ble scan if mqtt client is disconnected
* add wifi.begin when disconnected
https://github.com/espressif/arduino-esp32/issues/2501
2019-12-07 13:45:10 +01:00
Florian
4b1f09b06b
Wifi managers improvements ( #503 )
...
* Add parameters to wifi manager: gateway name and base topic
Enable to restart the ESP and erase the parameters by MQTT
2019-12-07 10:18:42 +01:00
Florian
12bd11bbe1
make ON OFF actuator more flexible ( #481 )
...
* make ON OFF actuator more flexible
enable to choose the pin when sending the MQTT command
* add on off environment example
2019-11-04 20:51:29 +01:00
1technophile
81201cf7de
Wifimanager must ne declared at global scope to handle wifi disconnection
...
#461
if not the reconnection is random
2019-11-04 20:45:57 +01:00
1technophile
82c9b7ce55
add ESP scope to enable Arduino boards build
2019-11-02 11:58:41 +01:00
1technophile
64313db6cb
replace defined on ESP by wifi manual setup macro
...
indeed if we use ESPWifiManualSetup we don't need wifimanager and its reset button
2019-11-02 08:25:02 +01:00
1technophile
1fa5d48e74
W5100 doesn't detect linkStatus
...
implement a bypass
2019-10-30 07:07:34 +01:00
Florian
d196f387ae
Improve wifi connection management ( #471 )
...
-avoid issues with WIFI automatic reconnection on ESP32
-avoid reset of ESP32 when wifi is disconnected
-enable to erase the wifi/mqtt settings if; the mqtt broker wasn't connected once or if the TRIGGER_PIN is pushed for a long time >10s
2019-10-19 21:59:46 +02:00
mpember
30ff181a57
Add support for HC-SR04 sensor ( #453 )
...
Adds support for HC-SR04 Ultrasonic distance snsor.
2019-09-10 20:38:04 +02:00
mpember
e4683b1812
Correct missing module string for DHT ( #444 )
...
The DHT module was not being appended to the modules string reported in the SYStoMQTT messages
2019-08-26 07:00:06 +02:00
BigDi and Leon Kiefer
0a9e8eaf35
Add basic FASTLED function initated by Joen ( #433 )
...
* merge FastLED part of Joen
Co-Authored-By: Leon Kiefer <leon.k97@gmx.de >
2019-08-02 10:20:58 +02:00
1technophile
e20339857e
format FS if begin() fail, to avoid setting lost when FS is not mounted
...
add of timeout parameter
2019-07-29 08:12:07 +02:00
1technophile
6795475e03
differenciate handling of disconnection between ESP and other boards
2019-07-26 12:34:29 +02:00
1technophile
87c85eabe0
if wifi is lost the ESP was blocked on a "MQTT connection loop"
...
To avoid that check the status of wifi connection before trying to connect to mqtt
Add of traces
2019-07-26 10:55:17 +02:00
1technophile
e0c8d93802
don't remove basic pub functions when no simplepublishing
2019-07-26 10:49:16 +02:00
1technophile
b938dd3052
Correct mac adress displaying partialy
...
due to not enough buffer size
2019-07-25 20:52:59 +02:00
1technophile
fd90d26873
Enable trace of IP
2019-07-25 14:52:41 +02:00
1technophile
9184c00b9d
Add ip and mac for esp
...
and ip for arduino
2019-07-25 10:42:51 +02:00
1technophile
1a5d808de9
Code size reduction for UNO
2019-07-25 10:41:21 +02:00
Rotzbua
798b987941
fix preprocessor error ( #428 )
...
error: macro names must be identifiers
2019-07-22 15:32:43 +02:00
1technophile
74939f63ed
correct non pertinent call to BTtoMQTT when using ESP32
...
BTtoMQTT is handled as a task whit ESP32
2019-07-20 21:04:13 +02:00
Florian
8471585d3d
Platformio integration ( #424 )
...
* adaptation of structure to platformio
* also remove zgatewayRF315 (not usefull)
* replace boolean by bool
#155
2019-07-18 22:45:45 +02:00