Need help to configure arduino leonardo ethernet

General support questions and discussions.

Need help to configure arduino leonardo ethernet

Postby aurelutz2007 » Tue Apr 12, 2016 11:22 am

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
aurelutz2007
 
Posts: 22
Joined: Mon Feb 24, 2014 1:06 pm

Re: Need help to configure arduino leonardo ethernet

Postby aurelutz2007 » Thu Apr 14, 2016 2:10 pm

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,
aurelutz2007
 
Posts: 22
Joined: Mon Feb 24, 2014 1:06 pm

Re: Need help to configure arduino leonardo ethernet

Postby support » Sun Apr 17, 2016 9:09 am

Thanks for sharing aurelutz2007 ...
support
Site Admin
 
Posts: 384
Joined: Thu Aug 22, 2013 7:30 pm


Return to Support



cron