Page 1 of 1

Need help to configure arduino leonardo ethernet

PostPosted: Tue Apr 12, 2016 11:22 am
by aurelutz2007
As my arduino Ethernet board (https://www.arduino.cc/en/Main/ArduinoBoardEthernet) died and this board is currently retired, I bought another board called Arduino Leonardo Ethernet http://www.arduino.org/products/boards/ ... onardo-eth

I was hopping that there will be not so much difference between the two, but I was wrong.
The last one is produced by arduino.org and is using arduino IDE 1.7.9.

Now, how can I make this board work with the MyDoorOpener project and with arduino IDE 1.7.9 ?

For the moment I'm getting this error three times on diferent lines:
C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino\PluggableUSB.h:57:21: error: 'USBSetup' has not been declared
int getDescriptor(USBSetup& setup);

I hope someone can help me to solve this.
Thank you

Re: Need help to configure arduino leonardo ethernet

PostPosted: Thu Apr 14, 2016 2:10 pm
by aurelutz2007
Problem fixed! I did reinstall the program and now is working.
Just for you to know...Arduino IDE 1.7.9 downloaded from arduino.org is compatible with Arduino Leonardo Ethernet board. This is for the people who are needing more than 2 relays (this board has 4 relays, like the old arduino ethernet).

However, there are some minor changes in the mydooropener app.
Basically, you will need to change the:

#include <Ethernet.h> to #include <Ethernet2.h>

and add gateway + dns like in the example:

#include <Ethernet2.h>
#include <SPI.h>
#include <aes256.h>
#include <Time.h>
#include "MyDoorOpenerServer.h"

//*******************************************************************
// Global configuration (adjust to reflect your setup)
//*******************************************************************
uint8_t ip[4] = { 192, 168, 1, 120 };
uint8_t myGateway[4] = { 192, 168, 1, 1 };
uint8_t myDns[4] = { 8, 8, 8, 8 };
int port = 81;
uint8_t mac[6] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
char* password = "xxxx";
EthernetServer server(port);
MyDoorOpenerServer myDoorOpenerServer(password, mac, ip, myDns, myGateway);

Regards,

Re: Need help to configure arduino leonardo ethernet

PostPosted: Sun Apr 17, 2016 9:09 am
by support
Thanks for sharing aurelutz2007 ...