Commit Graph

25 Commits

Author SHA1 Message Date
Cheney 5e79ace165
set SerialDelimiter=254 to post HEX string 2022-01-24 12:01:14 +08:00
Cheney b7b525f3d9
Send HEX string to mqtt 2022-01-21 17:21:09 +08:00
Theo Arends 3220332b1c Refactor serial config
Refactor serial config (#14212)
2021-12-30 14:39:22 +01:00
Theo Arends 4962fd229e Add command ``SSerialConfig <serialconfig>`` to change Serial Bridge configuration
Add command ``SSerialConfig <serialconfig>`` to change Serial Bridge configuration
2021-12-25 12:58:24 +01:00
Theo Arends aaa87a037a Revert "Merge pull request #14153 from wir3z/development"
This reverts commit d9ab90a2f9, reversing
changes made to 7bf6e5a773.
2021-12-25 11:34:58 +01:00
wir3z b8752b7272 TasmotaSerial:
- Added transmit parity to software TX.  Software RX just consumes in the incoming parity bit with no error checking.
- Fixed issue where Serial.begin for the ESP8266 was not passing the UART SerialConfig compatible values.

support.ino
- Cleanup to use already present ConvertSerialConfig API.

tasmota.ino:
- Force the baudrate + serial config settings after boot.  Previously, the baudrate would change, but any non 8N1 settings were not applied.

xdrv_08_serial_bridge.ino:
- Increased the software serial bridge buffer size and changed type to prevent overflow.
- Added missing serial config settings to the serial begin.  Previously was forcing 8N1.

xdrv_10_scripter.ino
- Cleanup to use already present ConvertSerialConfig API.
2021-12-22 09:23:15 -07:00
Theo Arends 5e805e0c4a Move Settings from DRAM to heap 2021-06-11 18:14:12 +02:00
Theo Arends dcbb3f1e0e Happy New Year 2021-01-01 13:44:04 +01:00
Theo Arends af5082320d Use global struct 2020-10-30 12:29:48 +01:00
mhendriks 7ff0f776a6
Update xdrv_08_serial_bridge.ino
serial.swap (GPIO13/15) will not work because hardware_fallback==2 is not set. Now it does.
2020-08-30 12:09:18 +02:00
Theo Arends 72e3765a55 Add command (``S``)``SerialSend6`` \<comma seperated values\>
Add command (``S``)``SerialSend6`` \<comma seperated values\> (#8937)
2020-07-21 12:42:18 +02:00
Theo Arends a84ebe552a Refactor rules processing 2020-07-20 17:24:51 +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 c939077514 Change pin handling part 3 2020-04-27 12:54:07 +02:00
Theo Arends c9149b53c5 Change pin handling part 1 2020-04-26 17:33:27 +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 ceef563414 Add simple check for serialreceived JSON
Add simple check for serialreceived JSON (#7506)
2020-01-14 15:58:56 +01:00
Theo Arends 8aa9109656 Happy New Year
Happy New Year
2019-12-31 14:23:34 +01:00
Theo Arends 00c7ee0bb8 Fix Arduino IDE compile error
Fix Arduino IDE function prototyping compile error (#6982)
2019-11-24 12:24:35 +01:00
Theo Arends 69af996ca1 Fix SerialReceived JSON error
Fix SerialReceived JSON error (#6893)
2019-11-10 12:19:26 +01:00
Theo Arends 0e07397ff7 Change Sonoff-Tasmota to Tasmota 2019-10-27 12:04:08 +01:00