Theo Arends
b5f45aa295
Fix ESP32 SPI config
2020-06-20 17:58:21 +02:00
Norbert Richter
9b44a369d8
Fix some json unescapes
2020-06-19 12:33:31 +02:00
Theo Arends
daef0a759d
Stop blinks when no network configured
2020-06-15 22:40:15 +02:00
Theo Arends
ef0b797686
Add basic support for ESP32 ethernet
...
Add basic support for ESP32 ethernet adding commands ``Wifi 0/1`` and ``Ethernet 0/1`` both default ON (#8503 )
2020-06-15 18:27:04 +02:00
Paul C Diem
3d42fae8bd
Fix SO88 incoming power state check
2020-05-29 18:55:33 -05:00
Staars
55e56fee43
Touch pin as button for ESP32
2020-05-27 15:59:32 +02:00
Paul C Diem
bc6d7ceb87
Add support for SetOption88 to put each relay in a separate device groups
2020-05-26 22:07:25 -05:00
Theo Arends
32a39b828c
Merge pull request #8553 from phjr/fix-device-power-on-esp8266
...
fix default power state logic invoked even if already serviced by a d…
2020-05-26 18:31:32 +02:00
Peter Halicky
f80d2ede3a
fix default power state logic invoked even if already serviced by a driver
2020-05-26 18:20:46 +02:00
Theo Arends
66233b1749
Add support for full MAC address
...
Add support for unique MQTTClient (and inherited fallback topic) by full Mac address using ``mqttclient DVES_%12X`` (#8300 )
2020-05-26 17:08:13 +02:00
Theo Arends
bacb730b53
Fix escape of non-JSON received serial data
...
Fix escape of non-JSON received serial data (#8329 )
2020-05-26 12:35:21 +02:00
Matthijs Abma
7210934774
Cleanup code and only allocate buffer when needed
2020-05-24 17:47:57 +02:00
Matthijs Abma
a4ce4830e8
Encode content when not raw or json
2020-05-24 17:47:57 +02:00
Matthijs Abma
7f18e1e8e3
Split logic for adding char to buffer and sending
...
the buffer, to make sure the char doesn't get
lost when the buffer is full
2020-05-23 17:44:49 +02:00
Matthijs Abma
2626345662
Store if current byte is delimiter for later reuse
2020-05-23 17:44:49 +02:00
Theo Arends
aafa0862ab
Refactor LedPwm code
2020-05-23 13:09:16 +02:00
George
e780f25283
Gamma correction
...
Implement changes proposed by @s-hadinger review.
* Use 0-255 range in settings
* Apply gamma correction from xdrv_light & use changuintscale helper fn (as per pwm light routine)
2020-05-23 17:13:04 +10:00
George
603b628f97
Add pwm mode masking
...
* Extra setting & command to set - allows masking of pwm mode. Use case is for leds attached to buttons for seeing at night; this way user can combine both pwm and digital leds (i.e. pwm for the button leds but non-button status leds can stay on/off).
2020-05-20 13:23:54 +10:00
George
e21cbfdc5d
More sensible behaviour
...
* When setting PWM values, updates all the LEDs (instant response). Uses led_power values.
* If LEDLINK not set, but LED1 is, LED1 is the status led. When turning on/off, setledlink uses digitalwrite (which does not respect the new pwm operation). In this case only, we will use the setledpoweridx instead of digitalwrite - costly (every 250ms this runs), but edge case / legacy. Allows more intuitive operation - if we blink an LED with the max and min PWM limits, we'd expect it to respect these. In this case, blink will also now update the led_power status, which keeps this accurate e.g. if ledpower 1 cmnd was sent, then blink occurred, led_state would read a 1 for that bit but the led would be off (but nothing was reading it for status so it didn't cause any trouble). Leaving digitalwrite when LEDLINK is defined as this is more efficient and the use case for pwm leds is to find buttons - link indicator would become more ambiguous for no benefit.
2020-05-20 13:23:53 +10:00
George
fb179c27af
Fixes
...
* Setting commands don't update if no data is sent
* Didn't understand how pin mapping worked duh. Fixed.
2020-05-20 13:23:53 +10:00
George
ce2696fef0
Fix compile errors
...
Missing brackets and semicolons of course. Blame python.
2020-05-20 13:23:53 +10:00
George
a305f435e8
First pass at led pwm settings
...
* Added settings for ledpwm_on and ledpwm_off with defaults that mimic current digitalwrite function
* Changed ledpoweridx from digitalwrite to analogwrite
* Add commands to change new settings
2020-05-20 13:23:52 +10:00
Theo Arends
cd7f719563
Add more functionality to ``Switchmode`` 11 and 12 ( #8450 )
...
Add more functionality to ``Switchmode`` 11 and 12 (#8450 )
2020-05-19 15:52:10 +02:00
Theo Arends
4aa1c18d82
Revert uart buffer size increase
...
Revert uart buffer size increase but visit uart buffer reads more often to solve possible uart buffer overrun caused by sleep
2020-05-11 16:45:22 +02:00
Theo Arends
125ee62ff3
Add Serial buffer overrun detection
...
Add Serial buffer overrun detection and fix serial corruption by increasing uart serial buffer to 520
2020-05-11 15:27:29 +02:00
Theo Arends
23a9948d29
Fix ESP32 compilation
2020-05-04 11:07:52 +02:00
Theo Arends
d410420110
Tasmotify ESP32 webcam
2020-05-03 18:37:12 +02:00
Theo Arends
99178c2f5d
Merge pull request #8315 from gemu2015/esp32-pwm
...
esp32 initial pwm support
2020-05-01 18:04:43 +02:00
gemu2015
bf29904b7a
esp32 initial pwm support
2020-05-01 17:38:40 +02:00
Theo Arends
892be892fa
Remove gpio to pin support
2020-05-01 17:37:56 +02:00
Theo Arends
7177c7d8e0
Change ESP32 pin allocation part 4
2020-05-01 16:47:41 +02:00
Theo Arends
ef61668037
Change ESP32 pin allocation part 2
2020-04-29 17:44:03 +02:00
Theo Arends
d805803daa
Change pin array names
...
Change pin array names to block unwanted use of direct access
2020-04-29 14:01:02 +02:00
Theo Arends
60e7a73b60
Switch from GPIO array to Pin array
2020-04-28 14:42:47 +02:00
Theo Arends
3fef91d6ca
Change pin handling part 6
2020-04-27 17:28:05 +02:00
Theo Arends
ae4ec4325d
Change pin handling part 5
2020-04-27 17:16:52 +02:00
Theo Arends
c939077514
Change pin handling part 3
2020-04-27 12:54:07 +02:00
Theo Arends
5d9be9a4d0
Fix pin handling part 1
2020-04-27 10:35:38 +02:00
Theo Arends
c9149b53c5
Change pin handling part 1
2020-04-26 17:33:27 +02:00
Theo Arends
104e3c4838
Implement ARRAY_SIZE macro
2020-04-25 11:37:36 +02:00
Theo Arends
9ed8e7c254
Fix internal array size checks
2020-04-24 17:39:26 +02:00
Theo Arends
5f75a4c354
Fix future compile error ;-)
2020-04-24 15:50:27 +02:00
Theo Arends
be1fb3756c
Change ESP32 freeHeap to MaxAllocHeap
2020-04-22 16:07:52 +02:00
Theo Arends
e8f3d1d986
Increase ESP32 compatibility
...
Increase ESP32 compatibility (breaks current ESP32 configuration again!)
2020-04-13 17:45:06 +02:00
Theo Arends
93fd5dd618
Add experimental minimal support for ESP32
...
Add experimental minimal support for ESP32 (#8110 )
2020-04-10 18:24:08 +02:00
Theo Arends
d8f750ebb9
Add legacy support
2020-04-09 14:00:02 +02:00
Stephan Hadinger
7a6628d903
Add command ``SetOption41 <x>`` to force sending gratuitous ARP every <x> seconds
2020-04-07 14:07:00 +02:00
Theo Arends
caff54da7c
Fix unquoted non-json data
...
Fix unquoted non-json data (#8040 )
2020-04-01 14:39:43 +02:00
Theo Arends
dbc9f16ffc
Add support for up to four MQTT GroupTopics
...
- Bump version to 8.2.0.2
- Add support for up to four MQTT GroupTopics using the same optional Device Group names (#8014 )
2020-03-28 16:48:36 +01:00
Norbert Richter
898fff9dbc
Add multiple GroupTopic<x> (x=1-4) (default disabled)
...
grouptopic (1-4) subscription even when USE_DEVICE_GROUPS
is not used.
2020-03-28 11:17:16 +01:00