andresarmento / modbus-arduino

A library that allows your Arduino to communicate via Modbus protocol, acting as a slave (master in development). Supports serial (RS-232, RS-485) and IP via Ethernet (Modbus IP).
BSD 3-Clause "New" or "Revised" License
457 stars 270 forks source link

right baud (ESP13 shield) #10

Open tomifarkas opened 8 years ago

tomifarkas commented 8 years ago

I just try to use Lamp.ino but I have some not clear stuff whit it. I have mega2560 end esp13 shield. What is the right baud in Lamp.ino /ESP8266 wifi(wifiSerial, xxxx)? Do I have to modify the baud in ESP8266.h / ESP8266 wifi(wifiSerial, xxxx) too? Now the phenomenon is that the Arduino send me an answer for my question but it is not right Modbus telegram. Telegram is too short (FF FF) when 9600 baud is in used and telegram is long short when 115200 is in used. Of course I change the baud in ESP8266 side to. I have tried too with hardware serial too but it has was same. Could anybody help me? Thank you for all your help!