This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <ArduinoModbus.h> | |
| // How often (in milliseconds) the sensors will be read. | |
| const unsigned long REPORT_INTERVAL = 1000; | |
| void setup() { | |
| Serial.begin(9600); | |
| while(!Serial); | |
| if (!ModbusRTUClient.begin(9600)) { |