Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: ESPEasy-now layer #3301

Open
wants to merge 703 commits into
base: mega
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
703 commits
Select commit Hold shift + click to select a range
cf4d75d
[ESPEasy-NOW] Fix merge conflicts
TD-er Jul 29, 2022
d7371c0
Merge branch 'merge/rename_feature_flags' into feature/esp-now-contro…
TD-er Jul 29, 2022
08a7110
[ESPEasy-NOW] Fix merge conflicts
TD-er Jul 29, 2022
b7e51f4
Merge branch 'mega' into feature/esp-now-controller
TD-er Jul 29, 2022
872f19c
Merge branch 'mega' into feature/esp-now-controller
TD-er Aug 5, 2022
d68eedd
Merge branch 'mega' into feature/esp-now-controller
TD-er Aug 7, 2022
3c0fb6f
Merge branch 'mega' into feature/esp-now-controller
TD-er Aug 8, 2022
81b7041
[WiFi] Fix properly disconnecting on ESP8266 * fix WiFiAPmode command
TD-er Aug 9, 2022
f6fc223
[WiFi] Use previously used STA channel when starting AP mode
TD-er Aug 10, 2022
e9fdfba
[WiFi] Fix reconnect when toggling AP mode + disable TX power
TD-er Aug 10, 2022
ba7eef2
Merge branch 'mega' into feature/esp-now-controller
TD-er Aug 11, 2022
cd70b6c
Merge branch 'mega' into feature/esp-now-controller
TD-er Aug 12, 2022
19f5aef
Merge branch 'mega' into bugfix/WiFi_AP_mode
TD-er Aug 12, 2022
c6aa91f
Merge branch 'mega' into feature/esp-now-controller
TD-er Aug 18, 2022
f1ae506
Merge branch 'mega' into feature/esp-now-controller
TD-er Aug 18, 2022
842d9ae
[Eth] Fix missing include for ESPEasy Ethernet
TD-er Aug 18, 2022
66a6292
Merge branch 'mega' into feature/esp-now-controller
TD-er Aug 21, 2022
fd51a51
Merge branch 'mega' into bugfix/WiFi_AP_mode
TD-er Aug 21, 2022
c2c5055
Merge branch 'mega' into feature/esp-now-controller
TD-er Aug 21, 2022
3b6d3b7
[Build] Fix merge issues
TD-er Aug 21, 2022
cd0846f
Merge branch 'mega' into feature/esp-now-controller
TD-er Aug 21, 2022
35eeace
Merge branch 'mega' into bugfix/WiFi_AP_mode
TD-er Aug 22, 2022
d9a1076
Merge branch 'mega' into feature/esp-now-controller
TD-er Aug 22, 2022
24a46da
Merge branch 'mega' into bugfix/WiFi_AP_mode
TD-er Aug 25, 2022
f14d2ab
Merge branch 'mega' into feature/esp-now-controller
TD-er Aug 25, 2022
6fef4cd
Merge branch 'mega' into bugfix/WiFi_AP_mode
TD-er Aug 27, 2022
c2bdd30
Merge branch 'mega' into feature/esp-now-controller
TD-er Aug 27, 2022
bbedd93
Merge branch 'mega' into feature/esp-now-controller
TD-er Aug 30, 2022
bfa51e6
Merge branch 'mega' into bugfix/WiFi_AP_mode
TD-er Aug 30, 2022
a457bf3
Merge branch 'mega' into feature/esp-now-controller
TD-er Sep 2, 2022
302fce6
Merge branch 'mega' into bugfix/WiFi_AP_mode
TD-er Sep 2, 2022
ec7138d
Merge remote-tracking branch 'letscontrolit/mega' into feature/esp-no…
TD-er Sep 2, 2022
8169d54
Merge branch 'mega' into feature/esp-now-controller
TD-er Sep 3, 2022
28ca59e
[ESPEasy-NOW] Fix not considering self as preferred node
TD-er Sep 7, 2022
c1cba5a
Merge branch 'mega' into feature/esp-now-controller
TD-er Sep 7, 2022
6297116
Merge branch 'mega' into bugfix/WiFi_AP_mode
TD-er Sep 7, 2022
d9f21f4
Merge remote-tracking branch 'origin/bugfix/WiFi_AP_mode' into test_w…
TD-er Sep 7, 2022
eff5dd0
[WifiESPNow] Update library to latest version
TD-er Sep 11, 2022
31574ef
[ESPEasy-NOW] Fix WiFi connect on ESP32 using ESPEasy-NOW
TD-er Sep 11, 2022
554dfb7
Merge branch 'test_wifi_ap_PR' into feature/esp-now-controller
TD-er Sep 11, 2022
b3a30fa
Merge branch 'mega' into feature/esp-now-controller
TD-er Sep 11, 2022
7db1b4d
[ESPEasy-NOW] Only switch to WiFi mode when connecting to AP
TD-er Sep 13, 2022
f1b89e5
[ESPEasy-NOW] Add sysvars to use mesh state in rules
TD-er Sep 13, 2022
caa3016
[ESPEasy_NOW] Report intended channel in mesh discovery messages
TD-er Sep 13, 2022
cb566db
Merge branch 'mega' into feature/esp-now-controller
TD-er Sep 26, 2022
ab99783
[WiFi] Prevent setting same WiFi mode multiple times
TD-er Sep 29, 2022
c2c9054
[SysVars] Fix sunrise/sunset offset (%sunrise-1h%)
TD-er Oct 1, 2022
b4dae42
[Build] Reduce build size
TD-er Oct 1, 2022
4995ee0
Merge remote-tracking branch 'letscontrolit/mega' into feature/esp-no…
TD-er Oct 1, 2022
1906e44
Merge branch 'mega' into feature/esp-now-controller
TD-er Oct 2, 2022
b3f61ed
[WiFi] Change Espressif SDK to SDK221
TD-er Oct 2, 2022
c1780f4
[WiFi] Prevent reconnect loop
TD-er Oct 4, 2022
3920336
[WiFi] Fix ESP32 build
TD-er Oct 4, 2022
1944f6b
[WiFi] Prevent reconnect loop
TD-er Oct 5, 2022
87a3a67
[WiFi] Check scan results for known candidates
TD-er Oct 5, 2022
572cc4c
[WiFi] Make WiFi reconnect more predictable
TD-er Oct 5, 2022
d798636
[WiFi] Fix WiFi connect timeout handling
TD-er Oct 6, 2022
7b280f1
[ESPEasy-NOW] Prevent WiFi power off when enabling mesh
TD-er Oct 6, 2022
c23b40c
[WiFi] Limit WiFi logs on size challenged builds
TD-er Oct 6, 2022
52b5394
[Commands] Fix accepting invalid commands
TD-er Oct 7, 2022
6752949
[Cleanup] Reduce bin size when using timing stats
TD-er Oct 7, 2022
6a602a6
[Serial] Make Serial port for ESPEasy console/log configurable
TD-er Oct 7, 2022
a01f861
[Serial] Rename Serial. to ESPEASY_SERIAL_CONSOLE_PORT.
TD-er Oct 7, 2022
e433288
[Factory Default] Fix default settings for SSID2
TD-er Oct 7, 2022
e454151
[WiFi] Reduce time needed to connect to WiFi
TD-er Oct 10, 2022
4db381e
[WiFi Setup] Fix serving CSS on initial WiFi setup
TD-er Oct 8, 2022
096b18c
[Webserver] Fix strange crashes when serving flash strings
TD-er Oct 10, 2022
52356ad
Merge branch 'mega' into feature/esp-now-controller
TD-er Oct 16, 2022
a3658d6
Revert "[Serial] Make Serial port for ESPEasy console/log configurable"
TD-er Oct 7, 2022
396b2a3
Revert "[Serial] Rename Serial. to ESPEASY_SERIAL_CONSOLE_PORT."
TD-er Oct 7, 2022
219620f
[Custom build] Add DEFAULT_CONTROLLER_FALLBACK_MESH for Custom.h
TD-er Oct 16, 2022
20c55df
[p2p] Do not send uninitialized trailing node struct data
TD-er Oct 16, 2022
e3b4086
[WiFi] Clear WiFi scan results when reset WiFi
TD-er Oct 16, 2022
4d50258
[ESPEasy-NOW] Send event on p2p distance change "nodep2p#distance=N"
TD-er Oct 16, 2022
c6259e8
[ESPEasy-NOW] Fix missing include
TD-er Oct 16, 2022
f504974
Merge branch 'mega' into feature/esp-now-controller
TD-er Oct 16, 2022
b243769
Merge branch 'mega' into feature/esp-now-controller
TD-er Oct 17, 2022
d275239
Merge branch 'mega' into feature/esp-now-controller
TD-er Oct 18, 2022
4033aab
Merge branch 'mega' into feature/esp-now-controller
TD-er Oct 23, 2022
4a84e6d
Merge branch 'mega' into feature/esp-now-controller
TD-er Oct 26, 2022
a8304a6
Merge branch 'mega' into feature/esp-now-controller
TD-er Oct 27, 2022
fbe0c18
Merge branch 'mega' into feature/esp-now-controller
TD-er Nov 2, 2022
bab80d1
[ESPEasy-NOW] Fix merge issues
TD-er Nov 2, 2022
c5d2571
Merge branch 'mega' into feature/esp-now-controller
TD-er Nov 3, 2022
6bc1f8c
Merge branch 'mega' into feature/esp-now-controller
TD-er Nov 5, 2022
7d6f88e
Merge branch 'mega' into feature/esp-now-controller
TD-er Nov 6, 2022
a9d1c4d
[ESPEasy-NOW] Fix missing include
TD-er Nov 6, 2022
b94f0c9
Merge branch 'mega' into feature/esp-now-controller
TD-er Nov 7, 2022
39e8c7a
Merge branch 'mega' into feature/esp-now-controller
TD-er Nov 8, 2022
2e5f6b7
Merge branch 'mega' into feature/esp-now-controller
TD-er Nov 9, 2022
f03fdf0
Merge branch 'mega' into feature/esp-now-controller
TD-er Nov 14, 2022
74c97e1
Merge branch 'mega' into feature/esp-now-controller
TD-er Nov 21, 2022
1f12b7d
Merge branch 'mega' into feature/esp-now-controller
TD-er Nov 24, 2022
9858783
Merge branch 'mega' into feature/esp-now-controller
TD-er Nov 25, 2022
7b51525
Merge branch 'mega' into feature/esp-now-controller
TD-er Dec 8, 2022
b440abc
Merge branch 'mega' into feature/esp-now-controller
TD-er Dec 9, 2022
7a0ff8a
[CUL reader] Add proper w-mBus decoding for various types
TD-er Dec 13, 2022
610b9c0
[CUL reader] Allow set manufacturer in readable format
TD-er Dec 15, 2022
a0d743e
[CUL reader] Add test CUL messages for debug
TD-er Dec 16, 2022
5d904ed
Merge remote-tracking branch 'letscontrolit/mega' into feature/esp-no…
TD-er Dec 16, 2022
cd68530
[CUL reader] Fix filtering with not all filter lines set
TD-er Dec 17, 2022
47c862a
[CUL reader] Uncrustify
TD-er Dec 17, 2022
2584ebd
[CUL reader] By default leave out debug features
TD-er Dec 17, 2022
6b657af
[CUL Reader] Fix parsing 'type A' message headers & fix RSSI
TD-er Dec 19, 2022
1fc8fb2
[CUL Reader] Compute checksum CUL messages for deduplication
TD-er Dec 19, 2022
40b8b2d
[CUL reader] Improve mBus checksum uniqueness + reduce header membersize
TD-er Dec 20, 2022
ac8a5b8
Merge branch 'mega' into feature/esp-now-controller
TD-er Dec 25, 2022
521e844
Merge branch 'mega' into feature/esp-now-controller
TD-er Jan 10, 2023
bfcda50
Merge branch 'mega' into feature/esp-now-controller
TD-er Jan 10, 2023
a5fdef2
Merge branch 'mega' into feature/esp-now-controller
TD-er Jan 13, 2023
a85375f
Merge branch 'mega' into feature/esp-now-controller
TD-er Jan 13, 2023
d01dad3
Merge branch 'mega' into feature/esp-now-controller
TD-er Jan 18, 2023
a4373be
[Build] Exclude C019 from custom build.
TD-er Jan 18, 2023
c7c8bab
[ESPEasy_NOW] Fix merge issues forwarding MQTT packets
TD-er Jan 19, 2023
94fc4eb
Merge branch 'mega' into feature/esp-now-controller
TD-er Jan 20, 2023
fcdc022
[ESPEasy-NOW] Add new C019 ESPEasy-NOW controller
TD-er Jan 21, 2023
623ef8c
[LoRaTTN] Split up C018 source files
TD-er Jan 23, 2023
c0a1fc8
[ESPEasy_NOW] Add mesh config to C019 controller + filtering
TD-er Jan 23, 2023
6c2ceff
[WiFi] Allow WiFi scan per channel
TD-er Feb 9, 2023
56fe789
Merge branch 'mega' into feature/esp-now-controller
TD-er Feb 17, 2023
e6befd9
[ESPEasy_NOW] Fix sending announce packets + use forced WiFi channel
TD-er Feb 17, 2023
fdb4c52
[ESPEasy_NOW] Detection of mesh nodes from scan
TD-er Feb 17, 2023
bf0562a
Merge branch 'mega' into feature/esp-now-controller
TD-er Feb 19, 2023
3445e64
[ESPEasy-NOW] Improve routing based on MQTT queue state
TD-er Feb 20, 2023
9c72bca
[ESPEasy_NOW] Fix ESP32 could only connect to AP after 20 mins
TD-er Feb 20, 2023
e292d18
[ESPEasy_NOW] Add filter option to ESPEasy_NOW controller
TD-er Feb 21, 2023
1a3c574
[ESPEasy_NOW] Uncrustify ESPEasy_now_handler
TD-er Feb 21, 2023
6b80541
[ESPEasy_NOW] Fix stability issue with mesh on ESP8266
TD-er Feb 22, 2023
4a75b9a
[ESPEasy_NOW] Fix CUL reader filtering on gateway node
TD-er Feb 22, 2023
f4e9ce9
Merge branch 'mega' into feature/esp-now-controller
TD-er Feb 22, 2023
23ce3eb
[ESP32 ETH] Fix setting DNS on latest ESP32 SDK
TD-er Feb 24, 2023
070a296
Merge branch 'mega' into feature/esp-now-controller
TD-er Feb 28, 2023
0cde584
Merge branch 'mega' into feature/esp-now-controller
TD-er Feb 28, 2023
a12f326
Merge branch 'mega' into feature/esp-now-controller
TD-er Mar 2, 2023
262e6bd
Merge branch 'mega' into feature/esp-now-controller
TD-er Mar 7, 2023
2096875
[ETH] Fix connect to LAN with internal clock
TD-er Mar 8, 2023
ea1938a
Merge remote-tracking branch 'letscontrolit/mega' into feature/esp-no…
TD-er Mar 8, 2023
6b377ef
Merge branch 'mega' into feature/esp-now-controller
TD-er Mar 8, 2023
a5d43d8
[Eth] Fix restoring cached DNS IPs
TD-er Mar 8, 2023
da29a7f
[CUL reader] Add time window filtering
TD-er Mar 17, 2023
cc8ad92
[CUL Reader] Add receive statistics
TD-er Mar 22, 2023
3c3e825
Merge branch 'mega' into feature/esp-now-controller
TD-er Mar 23, 2023
bbb847b
Merge branch 'mega' into feature/esp-now-controller
TD-er Mar 31, 2023
3ce79c4
Merge branch 'mega' into feature/esp-now-controller
TD-er Apr 1, 2023
4d6fce7
Merge branch 'mega' into feature/esp-now-controller
TD-er Apr 5, 2023
b34e95f
[Build] Disable Cache Reader plugin for ESP8266 custom build
TD-er Apr 5, 2023
eb45394
Merge branch 'mega' into feature/esp-now-controller
TD-er Apr 9, 2023
7d0ed4f
Merge branch 'mega' into feature/esp-now-controller
TD-er Apr 12, 2023
e2197ff
Merge branch 'mega' into feature/esp-now-controller
TD-er Apr 16, 2023
2ccfeb5
[ESPEasy-NOW] Fix merge issues
TD-er Apr 16, 2023
53c8545
[RTC TaskValues] Fix proper init of task values
TD-er Apr 17, 2023
bbe6fb1
[CUL Reader] Add new filtering
TD-er Apr 17, 2023
331f0d4
[CUL Reader] Implement new filtering load/store
TD-er Apr 18, 2023
342660e
[CUL Reader] Finetune new filtering load/store
TD-er Apr 20, 2023
c9b27bc
[CUL Reader] Implement new filtering
TD-er Apr 20, 2023
7eb4153
[CUL Reader] Fix build on ESP8266
TD-er Apr 20, 2023
cd3e0e2
[CUL Reader] Simplify task config page layout
TD-er Apr 20, 2023
538096e
[CUL Reader] Show W-Mbus stats and active filter entries
TD-er Apr 20, 2023
ff14a8f
[CUL Reader] Use W-Mbus message length in filter window
TD-er Apr 21, 2023
64e3067
[CUL Reader] Fix filtering unique device identification
TD-er Apr 21, 2023
20c6a95
[CUL Reader] Add both relay device and originator device to stats
TD-er Apr 23, 2023
ff94f55
[CUL Reader] Make CUL stats distinguish per received node
TD-er Apr 29, 2023
0d2b252
[CUL Reader] Suppress events for dumping stats.
TD-er Apr 29, 2023
1bc732b
[CUL Reader] Add commands to modify filters
TD-er Apr 29, 2023
b5f619b
[CUL Reader] Detect filter duplicates
TD-er Apr 29, 2023
4602fcb
[CUL Reader] Fix suggested command to dump stats
TD-er Apr 30, 2023
32b84b1
Merge branch 'mega' into feature/esp-now-controller
TD-er Apr 30, 2023
ad8d147
Merge branch 'mega' into feature/esp-now-controller
TD-er May 2, 2023
1ed20f5
Merge branch 'mega' into feature/esp-now-controller
TD-er May 7, 2023
944996f
Merge branch 'mega' into feature/esp-now-controller
TD-er May 10, 2023
57ff1b0
Merge branch 'mega' into feature/esp-now-controller
TD-er May 10, 2023
6f6411c
Merge branch 'mega' into feature/esp-now-controller
TD-er May 12, 2023
0302edb
Merge branch 'mega' into feature/esp-now-controller
TD-er May 13, 2023
a43e22a
Merge branch 'mega' into feature/esp-now-controller
TD-er May 30, 2023
d3f7104
Merge branch 'mega' into feature/esp-now-controller
TD-er Jun 8, 2023
d9628a4
Merge branch 'mega' into feature/esp-now-controller
TD-er Jun 14, 2023
8afb8ac
[CUL Reader] Disable sorting filters & add command to upload filters
TD-er Jun 14, 2023
09880a4
[ESP32 IDF] Update to IDF 4.4.5 (2023-06-14)
TD-er Jun 14, 2023
99e3e6c
[CUL Reader] Fix save filters + add command to set all filters at once
TD-er Jun 15, 2023
8126c58
[CUL Reader] Fix setfilters command with empty argument
TD-er Jun 16, 2023
57c34e9
[CUL Reader] Reduce number of writes when saving filters
TD-er Jun 16, 2023
82b59a5
[CUL Reader] Add mute messages option
TD-er Jun 16, 2023
7bf2d82
[CUL Reader] Fix applying flags set via commands without restart task
TD-er Jun 16, 2023
53a94f4
[CUL Reader] Fix computing MD5 for filters
TD-er Jun 19, 2023
a8ec0fd
Merge branch 'mega' into feature/esp-now-controller
TD-er Jun 21, 2023
3fff963
Merge branch 'mega' into feature/esp-now-controller
TD-er Jun 22, 2023
68fa293
Merge branch 'mega' into feature/esp-now-controller
TD-er Jun 22, 2023
5f8f34f
Merge branch 'mega' into feature/esp-now-controller
TD-er Aug 8, 2023
1b6de8a
[Build] Fix merge issues
TD-er Aug 8, 2023
31f4e95
Merge branch 'mega' into feature/esp-now-controller
TD-er Aug 24, 2023
9659534
Merge branch 'mega' into feature/esp-now-controller
TD-er Sep 2, 2023
7151f5a
Merge branch 'mega' into feature/esp-now-controller
TD-er Sep 6, 2023
85f2c48
Merge branch 'mega' into feature/esp-now-controller
TD-er Sep 6, 2023
3634b90
Merge branch 'mega' into feature/esp-now-controller
TD-er Sep 14, 2023
46a224a
[CUL reader] Increase max. CUL message size to 1024 for ESP32
TD-er Sep 14, 2023
66cebc7
Merge branch 'mega' into feature/esp-now-controller
TD-er Sep 21, 2023
4053d7f
[ESPEasy-NOW] Fix merge issues
TD-er Sep 21, 2023
de143f2
Merge branch 'mega' into feature/esp-now-controller
TD-er Sep 30, 2023
50cabb6
[ESPEasy_NOW] Fix merge issues in P026 SysInfo
TD-er Sep 30, 2023
d3bf324
Merge branch 'mega' into feature/esp-now-controller
TD-er Nov 27, 2023
99e51ae
Merge branch 'mega' into feature/esp-now-controller
TD-er Nov 27, 2023
3f5e9ce
Merge branch 'mega' into feature/esp-now-controller
TD-er Nov 27, 2023
50d66a7
[ESPEasy-NOW] Fix merge issue sysinfo page
TD-er Nov 27, 2023
89e062b
Merge branch 'mega' into feature/esp-now-controller
TD-er Dec 25, 2023
0e39365
[ESPEasy-NOW] Fix merge issues
TD-er Dec 25, 2023
99243bb
[ESPEasy-NOW] Fix build custom_IR_ESP32_16M8M_LittleFS_ETH
TD-er Dec 26, 2023
3d52e0c
Merge branch 'mega' into feature/esp-now-controller
TD-er Jan 3, 2024
853e876
Merge branch 'mega' into feature/esp-now-controller
TD-er Jan 18, 2024
f9bbf4c
Merge branch 'mega' into feature/esp-now-controller
TD-er Jan 30, 2024
44d7847
Merge branch 'mega' into feature/esp-now-controller
TD-er Feb 2, 2024
f57b456
Merge branch 'mega' into feature/esp-now-controller
TD-er Feb 11, 2024
7b37c7a
Merge branch 'mega' into feature/esp-now-controller
TD-er Feb 15, 2024
f55d31b
Merge branch 'mega' into feature/esp-now-controller
TD-er Feb 18, 2024
191f890
Merge branch 'mega' into feature/esp-now-controller
TD-er Mar 21, 2024
339de9d
Merge branch 'mega' into feature/esp-now-controller
TD-er Mar 28, 2024
a7bba45
[ESPEasy-NOW] Fix merge issue
TD-er Mar 28, 2024
c1359fb
Merge remote-tracking branch 'letscontrolit/mega' into feature/esp-no…
TD-er Mar 28, 2024
e70c646
[ESPEasy-NOW] Fix merge issue
TD-er Mar 28, 2024
a29aa1a
Merge branch 'mega' into feature/esp-now-controller
TD-er Mar 31, 2024
cf892ad
Merge branch 'mega' into feature/esp-now-controller
TD-er Apr 14, 2024
787266c
Merge branch 'mega' into feature/esp-now-controller
TD-er Apr 25, 2024
422cd1a
Merge branch 'mega' into feature/esp-now-controller
TD-er Apr 28, 2024
ccafd79
Merge branch 'mega' into feature/esp-now-controller
TD-er May 1, 2024
9c3e764
Merge branch 'mega' into feature/esp-now-controller
TD-er May 4, 2024
403a6ca
[ESPEasy-NOW] Fix merge conflict in C018
TD-er May 4, 2024
96f1804
Merge branch 'mega' into feature/esp-now-controller
TD-er May 29, 2024
c725345
Merge branch 'mega' into feature/esp-now-controller
TD-er Jun 22, 2024
b311f5b
Merge branch 'mega' into feature/esp-now-controller
TD-er Jun 22, 2024
146610f
Merge branch 'mega' into feature/esp-now-controller
TD-er Jun 30, 2024
e5fd6cc
Merge branch 'mega' into feature/esp-now-controller
TD-er Jul 3, 2024
0b4af81
Merge branch 'mega' into feature/esp-now-controller
TD-er Jul 8, 2024
bad857e
[ESPEasy-NOW] Fix merge issues
TD-er Jul 8, 2024
3521e60
[ESPEasy-NOW] Fix another build/merge issue
TD-er Jul 8, 2024
47e0700
Merge branch 'mega' into feature/esp-now-controller
TD-er Jul 13, 2024
5ec9963
Merge branch 'mega' into feature/esp-now-controller
TD-er Jul 15, 2024
ba2b3a5
Merge branch 'mega' into feature/esp-now-controller
TD-er Jul 27, 2024
7676e57
[Build] Remove CUL reader from ESP8266 collection D build due to size
TD-er Jul 27, 2024
b67e548
Merge remote-tracking branch 'letscontrolit/mega' into feature/esp-no…
TD-er Aug 6, 2024
9036350
Merge branch 'mega' into feature/esp-now-controller
TD-er Aug 22, 2024
9b0b538
Merge branch 'mega' into feature/esp-now-controller
TD-er Sep 24, 2024
51b8613
Merge branch 'mega' into feature/esp-now-controller
TD-er Sep 26, 2024
7d9933b
Merge branch 'mega' into feature/esp-now-controller
TD-er Sep 28, 2024
7645a82
Merge branch 'mega' into feature/esp-now-controller
TD-er Sep 28, 2024
ddc3395
Merge branch 'mega' into feature/esp-now-controller
TD-er Oct 2, 2024
3e33831
[Controller] Fix really strange merge issue (return statement got lost)
TD-er Oct 2, 2024
155efef
Merge branch 'mega' into feature/esp-now-controller
TD-er Oct 2, 2024
5851825
Merge branch 'mega' into feature/esp-now-controller
TD-er Oct 3, 2024
260c4da
Merge remote-tracking branch 'letscontrolit/mega' into feature/esp-no…
TD-er Oct 7, 2024
f5a6f15
Merge branch 'mega' into feature/esp-now-controller
TD-er Oct 26, 2024
757fcd0
Merge branch 'mega' into feature/esp-now-controller
TD-er Nov 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions docs/source/Plugin/P000_commands.repl
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,36 @@

``Password,<new password>``"
"
ProvisionConfig","
:red:`Internal`","
Fetch ``config.dat`` as configured in the Provisioning configuration (see Settings Archive)

``ProvisionConfig``"
"
ProvisionSecurity","
:red:`Internal`","
Fetch ``security.dat`` as configured in the Provisioning configuration (see Settings Archive)

``ProvisionSecurity``"
"
ProvisionNotification","
:red:`Internal`","
Fetch ``notification.dat`` as configured in the Provisioning configuration (see Settings Archive)

``ProvisionNotification``"
"
ProvisionProvision","
:red:`Internal`","
Fetch ``provisioning.dat`` as configured in the Provisioning configuration (see Settings Archive)

``ProvisionProvision``"
"
ProvisionRules","
:red:`Internal`","
Fetch ``rulesN.txt`` as configured in the Provisioning configuration (see Settings Archive)

``ProvisionRules,1`` to fetch ``rules1.txt`` "
"
Publish","
:green:`Rules`","
Send command using MQTT broker service
Expand Down
74 changes: 74 additions & 0 deletions docs/source/Tools/Tools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -833,14 +833,44 @@ Especially if the node is hard to reach for a proper clean setup.
.. image:: images/SettingsArchive_download2.png

After downloading the files, a summary is given.

A returned error can be something like 404 (file not available) or 401 (not authorized).
These are the standard HTTP error codes.
The error will be ``-1`` if the host is unreachable.

If a file already exists, the new file is downloaded with ``_tmp`` appended to the filename.
If successful, the original file will be renamed to one with ``_bak`` appended to the filename and then the ``_tmp`` version is renamed to the original filename.
However, if the ``_bak`` is present, it may fail to rename the original one, so the operation fails.
The presence of the ``_bak`` file is also some protection to not being able to fetch a new version, unless the "Delete First" option is checked.

If ''config.dat'' or ''security.dat'' was downloaded, it is very important to do a reboot and not try to change (and save) anything on the ESPeasy node.
The old settings are still active in memory and if something will be saved, only the changed part may be saved.
This would corrupt the settings file.


With only ``USE_SETTINGS_ARCHIVE`` defined during build, the URL and credentials cannot be stored.
For this the build must be made with ``USE_CUSTOM_PROVISIONING`` defined.

N.B. ``USE_CUSTOM_PROVISIONING`` is added on 2021-05-16.


URL with Settings
^^^^^^^^^^^^^^^^^

This holds the full URL without file name where the files must be fetched from.

Since builds made after 2021-05-16, the URL may also contain system variables.
This allows for an URL like: ``http://192.168.10.127/%mac%``

System variables will be converted into an URL encoded form, which may end up like this:

* ``http://192.168.10.127/A0%3a20%3aA6%3a14%3a84%3a81/rules4.txt`` MAC address: ``A0:20:A6:14:84:81``

The URL will not be stored, unless the build is made with ``USE_CUSTOM_PROVISIONING`` defined and the option is checked to save the URL. (option only present when ``USE_CUSTOM_PROVISIONING`` defined)

Using system variables may allow for multi stage setup of a node, as you could for example fetch a rule which may set a variable to a new value and thus new files may be fetched from a different URL.


Side Effects on cloning
-----------------------

Expand All @@ -854,3 +884,47 @@ If the original node is configured to use static IP, the clone will use the same
This can render both inaccessible.


Provisioning
============

Added: 2021-05-16

When the build is made with ``USE_CUSTOM_PROVISIONING`` defined, this Settings Archive screen does allow for more settings helping deployment and remote administration of ESPEasy nodes.

All Settings on the Settings Archive page can be stored in a file named ``provisioning.dat``.
This file also can store the factory default settings like the device model to ease deployment of a large number of nodes.

N.B. The ``USE_SETTINGS_ARCHIVE`` define is needed to allow to edit the ``provisioning.dat`` file, but it is not needed to use the provisioning feature.


.. image:: images/SettingsArchive_provisioning.png

As can be seen, the URL and credentials can be stored.
This will be stored in a file named ``provisioning.dat``
Such a file may also be fetched from a server.

The ``provisioning.dat`` file can also be automatically generated when performing a factory reset.
For this the (custom) build must be prepared via a number of defined defaults.
See the ``Custom-sample.h`` file for some examples.


Allow Fetch by Command
^^^^^^^^^^^^^^^^^^^^^^

This checkbox allows provisioning via commands.
These commands are not restricted, so they can also be given via HTTP or MQTT.

However, they can only be executed when:

* Allow Fetch by Command is enabled
* the file to download is checked
* URL (+ optional credentials) is stored

The commands are:


* ``ProvisionConfig`` Fetch ``config.dat``
* ``ProvisionSecurity`` Fetch ``security.dat``
* ``ProvisionNotification`` Fetch ``notification.dat``
* ``ProvisionProvision`` Fetch ``provisioning.dat``
* ``ProvisionRules,1`` Fetch ``rules1.txt``
Binary file modified docs/source/Tools/images/SettingsArchive_download1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/source/Tools/images/SettingsArchive_download2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 11 additions & 11 deletions lib/I2Cdevlib/I2Cdev.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -774,8 +774,8 @@ uint16_t I2Cdev::readTimeout = I2CDEV_DEFAULT_READ_TIMEOUT;
// added by Jeff Rowberg 2013-05-07:
// Arduino Wire-style "beginTransmission" function
// (takes 7-bit device address like the Wire method, NOT 8-bit: 0x68, not 0xD0/0xD1)
uint8_t Fastwire::beginTransmission(uint8_t device) {
uint8_t twst, retry;
byte Fastwire::beginTransmission(byte device) {
byte twst, retry;
retry = 2;
do {
TWCR = (1 << TWINT) | (1 << TWEN) | (1 << TWSTO) | (1 << TWSTA);
Expand All @@ -794,8 +794,8 @@ uint16_t I2Cdev::readTimeout = I2CDEV_DEFAULT_READ_TIMEOUT;
return 0;
}

uint8_t Fastwire::writeBuf(uint8_t device, uint8_t address, uint8_t *data, uint8_t num) {
uint8_t twst, retry;
byte Fastwire::writeBuf(byte device, byte address, byte *data, byte num) {
byte twst, retry;

retry = 2;
do {
Expand All @@ -821,7 +821,7 @@ uint16_t I2Cdev::readTimeout = I2CDEV_DEFAULT_READ_TIMEOUT;
twst = TWSR & 0xF8;
if (twst != TW_MT_DATA_ACK) return 6;

for (uint8_t i = 0; i < num; i++) {
for (byte i = 0; i < num; i++) {
//Serial.print(data[i], HEX);
//Serial.print(" ");
TWDR = data[i]; // send data to the previously addressed device
Expand All @@ -835,8 +835,8 @@ uint16_t I2Cdev::readTimeout = I2CDEV_DEFAULT_READ_TIMEOUT;
return 0;
}

uint8_t Fastwire::write(uint8_t value) {
uint8_t twst;
byte Fastwire::write(byte value) {
byte twst;
//Serial.println(value, HEX);
TWDR = value; // send data
TWCR = (1 << TWINT) | (1 << TWEN);
Expand All @@ -846,8 +846,8 @@ uint16_t I2Cdev::readTimeout = I2CDEV_DEFAULT_READ_TIMEOUT;
return 0;
}

uint8_t Fastwire::readBuf(uint8_t device, uint8_t address, uint8_t *data, uint8_t num) {
uint8_t twst, retry;
byte Fastwire::readBuf(byte device, byte address, byte *data, byte num) {
byte twst, retry;

retry = 2;
do {
Expand Down Expand Up @@ -913,7 +913,7 @@ uint16_t I2Cdev::readTimeout = I2CDEV_DEFAULT_READ_TIMEOUT;
TWCR = 0;
}

uint8_t Fastwire::stop() {
byte Fastwire::stop() {
TWCR = (1 << TWINT) | (1 << TWEN) | (1 << TWSTO);
if (!waitInt()) return 1;
return 0;
Expand Down Expand Up @@ -1028,7 +1028,7 @@ uint16_t I2Cdev::readTimeout = I2CDEV_DEFAULT_READ_TIMEOUT;
twi_Write_Vars *ptwv = 0;
static void (*fNextInterruptFunction)(void) = 0;

void twi_Finish(uint8_t bRetVal) {
void twi_Finish(byte bRetVal) {
if (ptwv) {
free(ptwv);
ptwv = 0;
Expand Down
10 changes: 5 additions & 5 deletions lib/I2Cdevlib/I2Cdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,12 @@ class I2Cdev {

public:
static void setup(int khz, boolean pullup);
static uint8_t beginTransmission(uint8_t device);
static uint8_t write(uint8_t value);
static uint8_t writeBuf(uint8_t device, uint8_t address, uint8_t *data, uint8_t num);
static uint8_t readBuf(uint8_t device, uint8_t address, uint8_t *data, uint8_t num);
static byte beginTransmission(byte device);
static byte write(byte value);
static byte writeBuf(byte device, byte address, byte *data, byte num);
static byte readBuf(byte device, byte address, byte *data, byte num);
static void reset();
static uint8_t stop();
static byte stop();
};
#endif

Expand Down
57 changes: 57 additions & 0 deletions lib/WifiEspNow/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
language: bash
os:
- linux
env:
matrix:
- PLATFORM=esp8266 \
HARDWARE=esp8266com/esp8266 \
COREGIT=https://github.com/esp8266/Arduino.git \
CORECOMMIT=192aaa42919dc65e5532ea4b60b002c4e19ce0ec \
BOARD='--board esp8266com:esp8266:nodemcuv2 --pref custom_xtal=nodemcuv2_80 --pref custom_eesz=nodemcuv2_4M1M'
- PLATFORM=esp32 \
HARDWARE=espressif/esp32 \
COREGIT=https://github.com/espressif/arduino-esp32.git \
CORECOMMIT=7df50a97d17b0953ea01cad0355410a66bd8b8b4 \
BOARD='--board espressif:esp32:heltec_wifi_kit_32 --pref custom_FlashFreq=heltec_wifi_kit_32_80'

before_install:
- sudo iptables -A INPUT -p udp -m udp --dport 5353 -j DROP # https://github.com/per1234/arduino-ci-script/issues/1
- sudo apt-get update; sudo apt-get install xvfb
- /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16
- export DISPLAY=:1.0

install:
- mkdir -p $HOME/arduino_ide; cd $HOME/arduino_ide
- curl -L http://downloads.arduino.cc/arduino-1.8.9-linux64.tar.xz | tar xJ --strip 1
- export PATH="$HOME/arduino_ide:$PATH"
- |
mkdir -p $HOME/Arduino/hardware/$HARDWARE
cd $HOME/Arduino/hardware/$HARDWARE
git init
git fetch $COREGIT
git -c advice.detachedHead=false checkout $CORECOMMIT
git submodule update --init
cd tools
python get.py
- mkdir -p $HOME/Arduino/libraries; cd $HOME/Arduino/libraries

before_script:
- cp -r $TRAVIS_BUILD_DIR $HOME/Arduino/libraries/WifiEspNow
- arduino $BOARD --save-prefs
- arduino --get-pref

script:
- |
NFAIL=0
for SKETCH in $(find $TRAVIS_BUILD_DIR -name '*.ino'); do
echo
echo
if [[ -f $(dirname $SKETCH)/skip-$PLATFORM.txt ]]; then
echo -e '\033[0;34m'Skipping $SKETCH '\033[0m'
continue
fi
echo -e '\033[0;36m'Building $SKETCH '\033[0m'
echo
arduino --verify $SKETCH || NFAIL=$((NFAIL+1))
done
[[ $NFAIL -eq 0 ]]
Loading