-->
Page 12 of 12

Re: ESP with MODBUS protocol

PostPosted: Fri Jun 09, 2017 4:43 am
by fenechcarl
Dear reaper7

Thank you for sharing your SDM120 project. I am getting the following errors aswell. I installed the espsoftwareserial-master library as instructed in a previous post. "Sketch -> Include Library -> Add .zip library". However the errors remain.

Error Message:

Arduino: 1.6.9 (Windows 7), Board: "WeMos D1 R2 & mini, 80 MHz, 115200, 4M (3M SPIFFS)"

In member function 'float SDM<_speed, _rx_pin, _tx_pin, _dere_pin>::readVal(uint16_t)':

error: 'class SoftwareSerial' has no member named 'listen'
sdmSer.listen(); //enable softserial rx interrupt
error: 'class SoftwareSerial' has no member named 'end'
sdmSer.end(); //disable softserial rx interrupt

exit status 1
Error compiling for board WeMos D1 R2 & mini.

Your help would be greatly appreciated.
Thanks

Re: ESP with MODBUS protocol

PostPosted: Fri Jun 09, 2017 11:27 am
by reaper7
I don't know what is wrong,
look at espsoftwareserial library from:
https://github.com/plerup/espsoftwareserial

member "listen" line 60:
https://github.com/plerup/espsoftwarese ... rial.h#L60
member "end" line 61:
https://github.com/plerup/espsoftwarese ... rial.h#L61

Re: ESP with MODBUS protocol

PostPosted: Tue Jun 13, 2017 5:28 am
by skassa
Hello,
I worked for you?
If yes, could share your code , please?
I'm trying but, at the moment, I'm not able to receive data with MAx485 adapter.
Thanks.

Re: ESP with MODBUS protocol

PostPosted: Tue May 22, 2018 4:35 pm
by nunoacfig
unfornatly i cant get a normal rs, i only have the MAX485, can some tell me how to setup the arduino ide to use a ESP01 and a max485?
i just dont get it :)