'packetPointer' does not name a type
Closed this issue · 0 comments
Build options changed, rebuilding all
SimpleModbusMasterExample.ino:110:1: error: 'packetPointer' does not name a type
SimpleModbusMasterExample.ino:111:1: error: 'packetPointer' does not name a type
SimpleModbusMasterExample.ino: In function 'void setup()':
SimpleModbusMasterExample.ino:120:3: error: 'packet1' was not declared in this scope
SimpleModbusMasterExample.ino:127:3: error: 'packet2' was not declared in this scope
SimpleModbusMasterExample.ino:136:98: error: invalid conversion from 'int' to 'HardwareSerial*' [-fpermissive]
SimpleModbusMasterExample.ino:136:98: error: invalid conversion from 'Packet*' to 'unsigned char' [-fpermissive]
SimpleModbusMasterExample.ino:136:98: error: too few arguments to function 'void modbus_configure(HardwareSerial*, long int, unsigned char, long int, long int, unsigned char, unsigned char, Packet*, unsigned int, unsigned int*)'
In file included from SimpleModbusMasterExample.ino:1:0:
/Users/Nilanj/Documents/Arduino/libraries/SimpleModbusMasterV2rev2/SimpleModbusMaster.h:134:6: note: declared here
void modbus_configure(HardwareSerial* SerialPort,
^
SimpleModbusMasterExample.ino: In function 'void loop()':
SimpleModbusMasterExample.ino:143:57: error: too many arguments to function 'void modbus_update()'
In file included from SimpleModbusMasterExample.ino:1:0:
/Users/Nilanj/Documents/Arduino/libraries/SimpleModbusMasterV2rev2/SimpleModbusMaster.h:125:6: note: declared here
void modbus_update();
^
SimpleModbusMasterExample.ino:143:57: error: void value not ignored as it ought to be
SimpleModbusMasterExample.ino:155:13: error: 'packet1' was not declared in this scope
SimpleModbusMasterExample.ino:158:13: error: 'packet2' was not declared in this scope
Error compiling.