-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compilation error #5
Comments
Define it in your code which module is used ENC28J60 or wiznet module. Read user guide and make necessary changes in the code. |
I did defining module which i'm using was ENC28J60. but the example program given is giving the same compilation error |
`/* ModbusTCP is free software: you can redistribute it and/or modify ModbusTCP is distributed in the hope that it will be useful, You should have received a copy of the GNU General Public License Adopted from ModbusMaster for RTU over RS-485 by Doc Walker */ unsigned int param_value_int[7]; IPAddress ModbusDeviceIP(10, 10, 108, 211); #include <ModbusTCP.h> ModbusTCP node(1); void setup() Serial.begin(9600); } void loop() // node.setTransactionID(random(100));
} // node.writeSingleRegister(5, 3); // for (byte i = 0; i < 5; i++) // node.writeSingleCoil(20, 1); node.setTransmitBuffer(0, 0b1010101001010101); result = node.readHoldingRegisters(2, 8); ` pls give some suggestion if anything wrong i'm using arduino compiler. |
Hi santhosh1211, You will solve the problem. |
Arduino: 1.8.5 (Windows 7), Board: "Arduino/Genuino Uno"
Build options changed, rebuilding all
In file included from C:\Users\capl\Documents\Arduino\libraries\Modbus-TCP-master\examples\modbusTCPlib_enc28j60\modbusTCPlib_enc28j60.ino:34:0:
C:\Users\capl\Documents\Arduino\libraries\Modbus-TCP-master/ModbusTCP.h:49:0: error: unterminated #ifndef
#ifndef ENC28J60
^
C:\Users\capl\Documents\Arduino\libraries\Modbus-TCP-master/ModbusTCP.h:47:0: error: unterminated #ifndef
#ifndef WIZNET_W5100
^
C:\Users\capl\Documents\Arduino\libraries\Modbus-TCP-master/ModbusTCP.h:44:0: error: unterminated #ifndef
#ifndef Modbus_TCPIP_h
^
exit status 1
Error compiling for board Arduino/Genuino Uno.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
The text was updated successfully, but these errors were encountered: