Error Compiling Ethernet Gateway
-
Please bear with me, i'm new to Arduino.
I'm trying to compile the EthernetGateway sketch having made the changes for my IP address and Port. I get the following error:
'IPAddress' does not name a typePer the instructions I'm trying to change the IP address and port to:
#define IP_PORT 5001 // The port you want to open
IPAddress myIp (192, 168, 15, 118; // Configure your static ip here
-
There is a missing end-parantesis in your posted example.
IPAddress myIp (192, 168, 15, 118**)**;
-
Well, Duh
-
@clippermiami
That was a copy/paste error --- the actual line was and is:#define IP_PORT 5001 // The port you want to open 20140404 JRS IPAddress myIp (192, 168, 15, 118); // Configure your static ip-address here 20140404 JRS
And I still get the error in compile IPAddress does not name a type
This is the Ethernet Gateway code as downloaded from the site, the only change is to substitute the port number and the IP address fields
-
Are you using the ENC-module or WizNet?
If ENC, Try removing the src-folder from the UIPEthernet-library.
-
@hek
The ENC module so i'll try your suggestion today and reply when I have results
-
UIPEthernet
I removed the "src" folder and still got the same error "IPAddress does not name a type"
#define IP_PORT 5001 // The port you want to open
IPAddress myIp (192, 168, 015, 118); // Configure your static ip-address here
-
IPAddress does not name a type
You must have done something wrong when installing the libraries. It works fine for me.
-
Well, I'll reinstall then and get back to you. Thanks
-
@clippermiami I had the same issue when the libraries weren't in place. See the steps at: http://www.mysensors.org/build/arduino
-
@tigra I got it working and in my excitement I forgot to follow up here.
I don't have the Ethernet Gateway working but the Serial one is running along with a single DHT sensor for now so I'm happy
john
-
does someone solved this fault also for Ethernet Gateway? While trying to adapt Sensebender Gateway to Ethernet, I get following messages:
error: 'IPAddress' does not name a type IPAddress _ethernetGatewayIP(MY_IP_ADDRESS);
error: 'EthernetServer' does not name a type
EthernetServer _ethernetServer(_ethernetGatewayPort);followed by some more, expected to result from the above mentioned.