Skip to content

Commit

Permalink
new SDM 2.0.7 version for espsoftwareserial lib 6.0.0 or higher
Browse files Browse the repository at this point in the history
  • Loading branch information
reaper7 committed Nov 10, 2019
1 parent 0db8702 commit e621ee9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ This library allows you reading SDM module(s) using:
- [x] Software Serial, attached as core libraries for esp8266 and avr</br>
(<i>the new version of esp Software Serial library</br>
has a different initialization compared to avr!</br>
<b>This version of SDM library (2.0.4 - 2.0.6) works only with esp Software Serial 5.2.0 - 5.4.0!!!</b></br>
<b>This version of SDM library (2.0.7) works only with esp Software Serial 6.0.0 or higher!!!</b></br>
If you have an older esp Software Serial version</br>
then use SDM library 2.0.3, details below the Credits section</i>)</br>
then use other SDM library, details below the Credits section</i>)</br>

you also need rs232<->rs485 converter:
- [x] with automatic flow direction control (<i>look at images below</i>) <b><i>or</i></b>
Expand Down Expand Up @@ -274,6 +274,7 @@ other projects based on or using this library</br>

---

<i>library version for old esp software serial (5.2.0 - 5.4.0) is available at [old_esp_swserial_520_540 branch](https://github.com/reaper7/SDM_Energy_Meter/tree/old_esp_swserial_520_540)</i><br>
<i>library version for old esp software serial (< 5.2.0) is available at [old_esp_swserial_lib branch](https://github.com/reaper7/SDM_Energy_Meter/tree/old_esp_swserial_lib)</i><br>
<i>old template library version is available at [old_template branch](https://github.com/reaper7/SDM_Energy_Meter/tree/old_template)</i><br>

Expand Down
2 changes: 1 addition & 1 deletion SDM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void SDM::begin(void) {
#endif
#else
#if defined ( ESP8266 ) || defined ( ESP32 )
sdmSer.begin(_baud, _rx_pin, _tx_pin, (SoftwareSerialConfig)_config);
sdmSer.begin(_baud, (SoftwareSerialConfig)_config, _rx_pin, _tx_pin);
#else
sdmSer.begin(_baud);
#endif
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=SDM
version=2.0.6
version=2.0.7
author=Reaper7
maintainer=Reaper7
sentence=SDM 72/120/220/230/630 modbus energy meter
Expand Down

0 comments on commit e621ee9

Please sign in to comment.