mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 18:56:38 +00:00
Fix Modbus serial config
This commit is contained in:
parent
1e6b78a957
commit
479b378707
@ -9,12 +9,15 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- PubSubClient library from v2.8.12 to v2.8.13
|
- PubSubClient library from v2.8.12 to v2.8.13
|
||||||
|
- TasmotaSerial library from v3.3.0 to v3.4.0
|
||||||
|
- TasmotaModbus library from v1.2.0 to v3.4.0
|
||||||
- From Semantic Versioning (SemVer) to Calendar Versioning (CalVer)
|
- From Semantic Versioning (SemVer) to Calendar Versioning (CalVer)
|
||||||
- Set ESP32 stack size with ``#define SET_ESP32_STACK_SIZE``, added ``StackLowMark`` metrics
|
- ESP32 Set stack size with ``#define SET_ESP32_STACK_SIZE``, added ``StackLowMark`` metrics
|
||||||
- Berry stores compiled bytecode into IRAM, freeing space in heap
|
- ESP32 Berry stores compiled bytecode into IRAM, freeing space in heap (#14307)
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Intermittent exceptions and heap corruption due to PubSubClient library buffer overflow (#13700)
|
- Intermittent exceptions and heap corruption due to PubSubClient library buffer overflow (#13700)
|
||||||
|
- Modbus serial config regression from v10.1.0.3
|
||||||
|
|
||||||
## [10.1.0.3] 20211231
|
## [10.1.0.3] 20211231
|
||||||
### Added
|
### Added
|
||||||
|
@ -114,11 +114,15 @@ The latter links can be used for OTA upgrades too like ``OtaUrl http://ota.tasmo
|
|||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- PubSubClient library from v2.8.12 to v2.8.13
|
- PubSubClient library from v2.8.12 to v2.8.13
|
||||||
|
- TasmotaSerial library from v3.3.0 to v3.4.0
|
||||||
|
- TasmotaModbus library from v1.2.0 to v3.4.0
|
||||||
- ESP8266Audio library from v1.9.2 to v1.9.5
|
- ESP8266Audio library from v1.9.2 to v1.9.5
|
||||||
- ESP8266SAM library from v1.0 to v1.0.1
|
- ESP8266SAM library from v1.0 to v1.0.1
|
||||||
- From Semantic Versioning (SemVer) to Calendar Versioning (CalVer)
|
- From Semantic Versioning (SemVer) to Calendar Versioning (CalVer)
|
||||||
- Mitsubishi HVAC temperature resolution [#13936](https://github.com/arendst/Tasmota/issues/13936)
|
- Mitsubishi HVAC temperature resolution [#13936](https://github.com/arendst/Tasmota/issues/13936)
|
||||||
- Remove restriction of topic must differ from mqttclient [#14019](https://github.com/arendst/Tasmota/issues/14019)
|
- Remove restriction of topic must differ from mqttclient [#14019](https://github.com/arendst/Tasmota/issues/14019)
|
||||||
|
- ESP32 Set stack size with ``#define SET_ESP32_STACK_SIZE``, added ``StackLowMark`` metrics
|
||||||
|
- ESP32 Berry stores compiled bytecode into IRAM, freeing space in heap [#14307](https://github.com/arendst/Tasmota/issues/14307)
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Intermittent exceptions and heap corruption due to PubSubClient library buffer overflow [#13700](https://github.com/arendst/Tasmota/issues/13700)
|
- Intermittent exceptions and heap corruption due to PubSubClient library buffer overflow [#13700](https://github.com/arendst/Tasmota/issues/13700)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "TasmotaSerial",
|
"name": "TasmotaSerial",
|
||||||
"version": "3.3.0",
|
"version": "3.4.0",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"serial", "io", "TasmotaSerial"
|
"serial", "io", "TasmotaSerial"
|
||||||
],
|
],
|
@ -1,5 +1,5 @@
|
|||||||
name=TasmotaSerial
|
name=TasmotaSerial
|
||||||
version=3.3.0
|
version=3.4.0
|
||||||
author=Theo Arends
|
author=Theo Arends
|
||||||
maintainer=Theo Arends <theo@arends.com>
|
maintainer=Theo Arends <theo@arends.com>
|
||||||
sentence=Implementation of software serial with hardware serial fallback for ESP8266 and ESP32.
|
sentence=Implementation of software serial with hardware serial fallback for ESP8266 and ESP32.
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "TasmotaModbus",
|
"name": "TasmotaModbus",
|
||||||
"version": "1.2.0",
|
"version": "3.4.0",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"serial", "io", "TasmotaModbus"
|
"serial", "io", "TasmotaModbus"
|
||||||
],
|
],
|
@ -1,5 +1,5 @@
|
|||||||
name=TasmotaModbus
|
name=TasmotaModbus
|
||||||
version=1.2.0
|
version=3.4.0
|
||||||
author=Theo Arends
|
author=Theo Arends
|
||||||
maintainer=Theo Arends <theo@arends.com>
|
maintainer=Theo Arends <theo@arends.com>
|
||||||
sentence=Basic modbus wrapper for TasmotaSerial for ESP8266.
|
sentence=Basic modbus wrapper for TasmotaSerial for ESP8266.
|
@ -42,11 +42,11 @@ uint16_t TasmotaModbus::CalculateCRC(uint8_t *frame, uint8_t num)
|
|||||||
return crc;
|
return crc;
|
||||||
}
|
}
|
||||||
|
|
||||||
int TasmotaModbus::Begin(long speed, int stop_bits)
|
int TasmotaModbus::Begin(long speed, uint32_t config)
|
||||||
{
|
{
|
||||||
int result = 0;
|
int result = 0;
|
||||||
|
|
||||||
if (begin(speed, stop_bits)) {
|
if (begin(speed, config)) {
|
||||||
result = 1;
|
result = 1;
|
||||||
if (hardwareSerial()) { result = 2; }
|
if (hardwareSerial()) { result = 2; }
|
||||||
}
|
}
|
@ -30,7 +30,7 @@ class TasmotaModbus : public TasmotaSerial {
|
|||||||
TasmotaModbus(int receive_pin, int transmit_pin);
|
TasmotaModbus(int receive_pin, int transmit_pin);
|
||||||
virtual ~TasmotaModbus() {}
|
virtual ~TasmotaModbus() {}
|
||||||
|
|
||||||
int Begin(long speed = TM_MODBUS_BAUDRATE, int stop_bits = 1);
|
int Begin(long speed = TM_MODBUS_BAUDRATE, uint32_t config = SERIAL_8N1);
|
||||||
|
|
||||||
uint16_t CalculateCRC(uint8_t *frame, uint8_t num);
|
uint16_t CalculateCRC(uint8_t *frame, uint8_t num);
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user