💬 Building an Ethernet Gateway
This thread contains comments for the article "Building an Ethernet Gateway" posted on MySensors.org.
i have this
i use ENC28J60 module . arduino nano + nrf24 + 4.7uf
this code:
,110 //() { }```
Would like to use MQTT gateway using RFM69. The RFM69 cannot be used with W5100 because of soft-spi, is this still the case? Can it then be used with ENC28J60?
- scalz Hardware Contributor last edited by scalz
@gvorster
hello, i'm working on rfm69 (refactorization and adding features), which will support softspi and w5100, and uses a lot less memory. might be available soon.
@gvorster
hello, i'm working on rfm69 (refactorization and adding features), which will support softspi and w5100, and uses a lot less memory. might be available soon.
Great, looking forward to it!
- Marek Běluša last edited by
Hi, i i try compile GatewayW5100.ino on this page then result is compiler error:
Arduino: 1.6.12 (Windows 10), Board: "Arduino Nano, ATmega328"
In file included from C:\Users\M\Documents\Arduino\libraries\MySensors-master/drivers/RF24/RF24.cpp:23:0,
from C:\Users\M\Documents\Arduino\libraries\MySensors-master/MySensors.h:261, from C:\Users\M\AppData\Local\Temp\arduino_modified_sketch_502474\sketch_oct22a.ino:116:
C:\Users\M\Documents\Arduino\libraries\MySensors-master/drivers/RF24/RF24.h:34:31: error: 'SPI_MODE0' was not declared in this scope
#define MY_RF24_SPI_DATA_MODE SPI_MODE0
^
C:\Users\M C:\Users\M\Documents\Arduino\libraries\MySensors-master/MySensors.h:261:0,
from C:\Users\M\AppData\Local\Temp\arduino_modified_sketch_502474\sketch_oct22a.ino:116:
C:\Users\M\Documents\Arduino\libraries\MySensors-master/drivers/RF24/RF24.cpp: In function 'uint8_t RF24_spiMultiByteTransfer(uint8_t, uint8_t*, uint8_t, bool)':
C:\Users\M\Documents\Arduino\libraries\MySensors-master/drivers/RF24/RF24.cpp:44:24: error: request for member 'transfer' in '_SPI', which is of non-class type 'int'
uint8_t status = _SPI.transfer( cmd );
^
C:\Users\M\Documents\Arduino\libraries\MySensors-master/drivers/RF24/RF24.cpp:47:18: error: request for member 'transfer' in '_SPI', which is of non-class type 'int'
status = _SPI.transfer( NOP ); ^
C:\Users\M\Documents\Arduino\libraries\MySensors-master/drivers/RF24/RF24.cpp:49:24: error: request for member 'transfer' in '_SPI', which is of non-class type 'int'
} else status = _SPI.transfer(*current++);
^
C:\Users\M\Documents\Arduino\libraries\MySensors-master/drivers/RF24/RF24.cpp: In function 'bool RF24_initialize()':
C:\Users\M\Documents\Arduino\libraries\MySensors-master/drivers/RF24/RF24.cpp:261:7: error: request for member 'begin' in '_SPI', which is of non-class type 'int'
_SPI.begin();
^
exit status 1
Error compiling for board Arduino Nano.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Could you please help?
Thanks.
If anyone answers @Marek-Běluša, please answer in to avoid working in two different threads. Do not answer here.
@Marek-Běluša please do not post the same question in more than one place.
I've spent hours and hours to get the W5100 Ethernet Module working on my Arduino Nano board and unfortunately without success. I'm using the MySensors version 2.0 with the Arduino AVR Boards 1.6.15 installed. I don't understand the issue at all. I cannot ping W5100 should, not if I use a static IP or if I configure to use DHCP. I've tested it with and without the NRF24L01 Radio connected and no luck. I've checked the wires already 10 times. This is the wire-ring info:
W5100 <=> Arduino Nano
VDD <=> Pin 27 / +5V
NSS <=> Pin 13 / D10
MOSI <=> Pin 14 / D11
GND <=> Pin 4
SCK <=> Pin 16 / D13
MISO <=> Pin 15 / D12
Is this the correct wire configuration? What else can I do to debug this?
On the W5100 I see the link led blinking on a regular basis almost at the same time as the Rx led, but I read that this HW issue and doesn't influence the behaviour of the ethernet board. Is this correct? If not, how to resolve this?
Looking forward to hints and tips as I'm completely lost on this topic.
@rbighouse have you seen the wiring guide in the page linked in the first post in this thread?
@mfalkvidd yes I've read that, even multiple times. I've check the wiring 10 times as well and cannot find a difference. Also changed to another W5100 board as well as a different Arduino Uno board to make sure it is not a board issue. The problem stays the same. What I've noticed as a difference is that my W5100 runs on 5V and not on 3.3V as indicated in the wiring table. Connecting the W5100 with 3.3V doesn't start (boot up) the board.
Just thought I'd mention that I've had good experience with adding a capacitor between GND and VCC for the ethernet module as well.
Same approach as for wiring the radio.
Previously had problems with GW disconnecting (Eth: disconnect) which is now reduced.
- Sergio Álvarez Sanchis last edited by
Same problem like Reza, same error messages AND I USING ethernet shield, ARDUINO MEGA AND nrf24
- Sergio Álvarez Sanchis last edited by
And using ARDUINO 1 the same.
Hi @DallieNL ,
thanks for your tips,
I got the same issue with serial gateway, 1.6.11 is the best.
David.
Would it be possible to build an MQTT gateway using the ESP8266 WiFi Gateway?
Would it be possible to build an MQTT gateway using the ESP8266 WiFi Gateway?
Yes, the MQTT gateway works on ESP as well.
Anyone have an instruction to set up a W5500 ethernet gateway?
- scalz Hardware Contributor last edited by
@LaMB95
For the moment, i don't think there is an howto regarding w5500 as we're mostly using w5100, but maybe you can find some infos in this topic
Hi All,
I have an ethernet gateway base on arduino Pro mini with NRF24L01 radio and Funding ethernet card with W5100 chips. (As per description of this page)
All works fine when I'm connected to it with Arduino IDE. Works for hours/days.
If I unplug the IDE (disconnect USB) and run it alone it stop working after for minutes or few hours.
I have only one sensor (temperature) to test. It send Temperature and battery level every 10s (testing). Led attached to Gateway to show the traffic lit up twice each time it receive the information from the sensor. The LED lit up twice like half a second when everything is fine. Easy to see.
When the issue starts, the led lit up time to time but very quickly, and even very difficult to see. Some time I can ping the Gateway, some time not.
Any idea from anybody ?
additional info: Same situation having //#define MY_DEBUG defined or not.
Looks like the issue is related to the power supply. I just plugged a 5V to the USB and It has been working fine for 24h. Need to review the Power supply in place.
- Sander Stolk last edited by
The first one will not compile since the #include <SPI.h> is missing
Hello guys,
Can anyone help me with modify this to work with W5500 Ethernet module?
Please advice us what need to be modified and why it needs to be modified.
Thanks you very much.
@WizarDEAD the information in might be useful.
Hi Guys,
I'm using a Wiznet W5100 Ethernet module.
The pins are described as following (I added a numbering myself:
The MySensors Gateway uses different terms, am I 'translating' them correctly?
@Chucky_69
Looks right!
My WizNET (W5100) Ethernet module had to be connected to 5v pin on arduino as the 3.3v would only allow ping but not function properly.
Maybe I just overlooked that, but is it possible to statically define netmask and gateway in the sketch? I'm using ENC28J60.
@mfalkvidd , yes I also found this in MQTT GW example, thanks.
This seems to be not working on my ENC28J60 - as I can see the the default gateway setting is not taken into account. I will test with W5100.
Edit: I confirm that these settings work properly with W5100, just tested.
I just spent a long time troubleshooting my problems trying to set this up and I thought I would share. I followed this tutorial and everything was a breeze except my unit kept rebooting and I couldn't figure out why. I thought for the longest time it was the power supply but it ended up being the version of Arduino IDE I was using. I found some answers and that got me down the right path. I downgraded to "Arduino IDE 1.6.11" and that worked. I completely uninstalled arduino from my system and just started over with the older version. I assembled everything as I had done before and it just fired right up. The mysensors library I used was 2.0.0 and again it all worked perfectly. I was amazed. I didnt have to comment out the debug or do anything other than follow the tutorial EXCEPT only use 1.6.11 to upload it all.
Hope this helps someone in the future.
@hoggin At least according to my experience, just downgrading the AVR Board Definitions to <=1.6.11 using the Board-Manager within an recent version of the IDE should have done the trick; downgrade of the other libs including mysensors (2.1.1) was not necessary.
In Addition: For the serial Gateways this kind of trouble seems to be solved since version 1.6.18 of the AVR-Board definitions (shipped since several weeks).
@rejoe2 Perhaps you are correct. I am not nearly as well versed in this stuff as others. I was working on the Ethernet project so I didn't spend much time messing with the serial end of it.
@hoggin I don't have experience with the ethernet part and just wanted to point out that your solution may be a little "overdone" (but I'm not sure about that).
Anyhow: Perhaps you should add a remark wrt. to this to your other post doubling the info you wrote here to avoid others doing tho long round instead of the direct way?
@rejoe2 I think you are suggesting that I create a link between this post and the other one. Here Hopefully this will direct people to more information regarding the rebooting issue i faced.
@hoggin The post I had in mind is this one:
I am going to post a similar answer also there.
I have a Vera but I'm moving some of my stuff over to OpenHab. So on one side I was using the standard W5100 GateWay on the other I need the MQTT GateWay. The major difference is in the "define MY_PORT" one is 5003 and the other is 1883. Is there a way to do both? Thanks.
@hek just tested the gateway sketch on an esp with an rfm69 and it looks really promising. Would it be possible to communicate with moteino's or do I have to create arduino+rfm69 nodes running the mysensor sketch?
Moteino is a low power wireless Arduino compatible development platform based on the popular ATmega328p chip used in the Arduino-UNO, making it 100% compatible with the Arduino IDE (programming environment) ... They are compatible with any other Arduino clones that use the popular HopeRF RFM69 transceiver
so they should work just fine. Just upload one of the MySensors example sketches to the moteino and try.
Just for sharing, yesterday I was playing around and I tried to make an ethernet gateway with a UNO with w5100 shield and a nrf24 radio, then I attached a DHT11 sensor to it; when I compiled the sketch I had to disable the MY_DEBUG otherwise the I could not upload it to the UNO as it was using 102% of available memory and even with no debug the Arduino IDE was giving me warning about low ram memory available that could make system unstable. I then removed the NRF24 part as I didn't need it at the moment and the sketch compiled smoothly.
It looks like the MEGA2560 could be a better candidate if you want to make a gateway with some sensors.
- Sensibelchen last edited by Sensibelchen
Solved: challenge with requesttime
Update: mysensors adapter 1.0.7 for ioBroker solved the issue.
Challenge:
my arduino node20 is requesting epoch time. W5100 gateway forwards message to controller (ioBroker). This is the gateways console in debug:
0;255;3;0;9;TSF:MSG:READ,20-20-0,s=255,c=3,t=1,pt=0,l=0,sg=0:
0;255;3;0;9;Eth: 20;255;3;1;I_TIME;1491770622
0;255;3;0;9;TSF:MSG:SEND,0-0-20-20,s=255,c=3,t=0,pt=0,l=10,sg=0,ft=0,st=OK:1491770622
0;255;3;0;9;TSF:MSG:READ,20-20-0,s=255,c=3,t=0,pt=0,l=10,sg=0:1491770622
0;255;3;0;9;TSF:MSG:ACK
The parser helps with the interpretation:
- request from node20 (Arduino) t=1 (=I_TIME)
- gateway receives epoch time from controller (ioBroker)
- gateway forwards info to node20. BUT: now with t=0 (=I_BATTERY_LEVEL)!!!!!!!!!!!!!!!
- node20 confirms battery level (and still doesn't know the time)
I'm using the ordinary gateway for W5100. Sensordata moves flawless to the controller but forwarding the time seems to be broken.
Any idea? Thank you in advance.
The reason why the 5100 module has problems sharing the SPI interface is because it lacks some hardware compared to the W5100 shield.
On (most of) the module(s) the SEN (SPI Enable) pin is pulled HIGH with a resistor, whereas on the W5100 shield it also receives the inverted CS signal.
That means that when the chip is deselected (CS=HIGH), the SEN pin receives a LOW and the SPI is switched off.
Apparently the state of the SS pin through the CS signal is not enough to Switch off the W5100 SPI: the MISO remains active, the SEN pin neds to be addressed too to shut off SPI completely.
If it works with a virtual SPI connection, great, but if you want to "fix" the hardware SPI, all you need to do is to invert the CS signal with a 74xx14 or maybe even a 74xx04 and feed that to the SEN pin of the chip.
i'm using w5100 and mega, checking wiring 10 times and successfully uploaded code didn't change anything in code just copy paste but it seem like is not working i installed domoticz controller and it log to me
2017-04-17 21:51:38.438 Error: MySensors: Can not connect to: 192.168.178.66:5003
2017-04-17 21:51:38.438 TCP: Connection problem (Unable to connect to specified IP/Port)
Also i can't see any new client in router client table, rx led is blinking but tx led on w5100 is always off
can anyone tell me how can i see if gw is working, i don't know is the problem on controller or hw? and how can i fix the problem?
THX for any help, and excuse for my english please
Try with any other sketch even not mysensors and check if ip is working, if still not working could be also the Chinese clone shield: I had one that got the wrong termination resistors and I fixed it by soldering 1 100ohms resistor between pin 1-2 and 1 between pin 3-6 below the ethernet socket
probably dumb question but where can i found any sketch to test the shield i tried ethernet examples from arduino ide but dont know how to connect the right pins it just said like: (Ethernet shield attached to pins 10, 11, 12, 13)
@Mitja-Blazinsek
Could you send us a picture with the module?
look like the Chinese shield is crap i try to test the web server example and nothing displayed
@Mitja-Blazinsek can you check your lineresistors? It is the spider like, 8 legged rrsistor array as in this picture
what is the value?
Maybe you have the ENC28J60 module which is different than w5100.
try this code at the beginning of your sketch(using a mysensor's example)
you have to change the ip to match your subnet and try to ping it.
You can find the correct pinout here
#define MY_GATEWAY_ENC28J60 #define MY_IP_ADDRESS 192,168,1,66 #define MY_PORT 5003 #define MY_MAC_ADDRESS 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED #include <UIPEthernet.h>```
i'm sure it's w5100 it's label on chip
@Mitja-Blazinsek exactly the same module I have. Funduino right? Is working here
@Mitja-Blazinsek I went back to what I have done to get that module to work and I remember the only thing I had to do was add a delay in the setup, as most problems with that funduino board seem to be because of a Reset problem:
with this setup It works for me:
void setup() {
// setup ethernet communication using DHCP
delay(250); /// <-------- THAT ONE, BEFORE your ethernet.begin statement
if (Ethernet.begin(mac) == 0) {
//Serial.println(F("Unable to configure Ethernet using DHCP"));
for (;;);
}
Forget about "changing the 510 resistors" that is something that is valid for some shields, not for the Funduino module.
I only have the Miso,Mosi,SCK and NSS connected (and Vcc/ground ofcourse). NOT the RST. Besides, if you connect RST you cannot upload sketches as your Arduino will continuously reset
@Mitja-Blazinsek Is your problem solved now Mitja?
connecting stand alone W5100 to ethernet should be solved by the delay i advised. I guess it should work with rfm69 if you set up the software SPI as described, but if you want to use hardware SPI a slight modification is necessary, which i described earlier
This post is deleted!
I am not sure where I went wrong the below code hangs half way through. I am using ENC28J60
#ifndef config_h #define config_h #include <stdint.h> /********************************** MySensors configuration **********************************/ //#define MY_BAUD_RATE 9600 #define MY_DEBUG //#define MY_BAUD_RATE 38400 //#define MY_BAUD_RATE 115200 //#define MY_NODE_ID 100 #define MY_RADIO_NRF24 // Enable gateway ethernet module type #define MY_GATEWAY_ENC28J60 //#define MY_GATEWAY_W5100 // Enabled repeater feature for this node //#define MY_REPEATER_FEATURE // Enable Soft SPI for NRF radio (note different radio wiring is required) // The ENC28J60 ethernet module seems to have a hard time co-operate with // radio on the same spi bus. #define MY_SOFTSPI #define MY_SOFT_SPI_SCK_PIN 14 #define MY_SOFT_SPI_MISO_PIN 16 #define MY_SOFT_SPI_MOSI_PIN 15 // When ENC28J60 // Gateway IP address #define MY_IP_ADDRESS 192,168,0,66 //, 55 // //#define MY_DISABLED_SERIAL // Turn off debug if serial pins is used for other stuff #ifdef MY_DISABLED_SERIAL #undef MY_DEBUG #endif /********************************** * Gateway config ***********************************/ /** * @def MY_GATEWAY_MAX_RECEIVE_LENGTH * @brief Max buffersize needed for messages coming from controller. */ #ifndef MY_GATEWAY_MAX_RECEIVE_LENGTH #define MY_GATEWAY_MAX_RECEIVE_LENGTH (100u) #endif /** * @def MY_GATEWAY_MAX_SEND_LENGTH * @brief Max buffer size when sending messages. */ #ifndef MY_GATEWAY_MAX_SEND_LENGTH #define MY_GATEWAY_MAX_SEND_LENGTH (120u) #endif /** * @def MY_GATEWAY_MAX_CLIENTS * @brief Max number of parallel clients (sever mode). */ #ifndef MY_GATEWAY_MAX_CLIENTS #define MY_GATEWAY_MAX_CLIENTS (1u) #endif /** * @def MY_RX_MESSAGE_BUFFER_FEATURE * @brief This enabled the receiving buffer feature. * * This feature is currently not supported for RFM69 and RS485, for RF24 MY_RF24_IRQ_PIN has to be defined. */ //#define MY_RX_MESSAGE_BUFFER_FEATURE /** * @def MY_RX_MESSAGE_BUFFER_SIZE * @brief Declare the amount of incoming messages that can be buffered. */ #ifdef MY_RX_MESSAGE_BUFFER_FEATURE #ifndef MY_RX_MESSAGE_BUFFER_SIZE #define MY_RX_MESSAGE_BUFFER_SIZE (20) #endif #endif /** * @def MY_RF24_PA_LEVEL * @brief Default RF24 PA level. Override in sketch if needed. */ #ifndef MY_RF24_PA_LEVEL #define MY_RF24_PA_LEVEL RF24_PA_MAX #endif /** * @def MY_RF24_CHANNEL * @brief RF channel for the sensor net, 0-125. * Frequence: 2400 Mhz - 2525 Mhz Channels: 126 * * * */ #ifndef MY_RF24_CHANNEL #define MY_RF24_CHANNEL 76 #endif /** * @def MY_RF24_DATARATE * @brief RF24 datarate (RF24_250KBPS for 250kbs, RF24_1MBPS for 1Mbps or RF24_2MBPS for 2Mbps). */ #ifndef MY_RF24_DATARATE #define MY_RF24_DATARATE RF24_250KBPS #endif #endif
#include "config.h" #include <SPI.h> #include <UIPEthernet.h> #include <MySensors.h> void setup() { } void loop() { }
Output:.66 0;255;3;0;9;MCO:BGN:STP 0;255;3;0;9;MCO:BGN:INIT OK,TSP=1 0;255;3;0;9;Eth: connect 0;255;3;0;9;Eth: 0;0;3;0;2; 0;255;3;0;9;Eth: 0;0;3;0;2;Get Version 0;255;3;0;9;Eth: 0;0;3;0;18;PING 0;255;3;0;9;TSF:MSG:READ,1-1-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 0;255;3;0;9;TSF:MSG:BC 0;255;3;0;9;TSF:MSG:FPAR REQ,ID=1 0;255;3;0;9;TSF:PNG:SEND,TO=0 0;255;3;0;9;TSF:CKU:OK 0;255;3;0;9;TSF:MSG:GWL OK
ketch uses 26,232 bytes (85%) of program storage space. Maximum is 30,720 bytes.
Global variables use 1,286 bytes (62%) of dynamic memory, leaving 762 bytes for local variables. Maximum is 2,048 bytes.
sorry, but that is not the complete code.
@hiddenuser That is too bad.
I must say I find your sketch somewhat confusing. What is the purpose of the ifndef confif_h followed by a config_h?
your config.h seems to just define the configuration. Why not just do an #include "config.h"
The large amount of ifdefs make the sketch a little bit hard to read.
If you are a beginner (we all have been) and make a sketch primarily for yourself, many of those ifdes are not really necessary and at least you are not losing track.
Anyway, not trying to criticize you, but error tracking also for yrself would be easier.
Also... you are using a soft SPI. For the ENC28J60 that is not really necessary. (not necessary for w5100 either with a little adaptation).
So... I am afraid that at this point I cant say anything sensible about yr sketch, but I can say the ENC28J60 works, even with a shared SPI bus.
Have you tried a working W5100 sketch with simply changing Ethernet.h into UIPEthernet.h?
@Ed1500 Thanks for you feedback. I have switched over to using W5100. However I have noticed that for some reason I am missing a data which is sent over nrf24. The gaps in the data are random and I can't seem to figure out why this is happening. BTW I am using domoticz on a pi to get the data. Initially I was using mysensor over usb to get the data and used to work fine. In order to get the update OTA I am trying to switch to ethernet Gateway and does not seem to work
//#define MY_DEBUG #define MY_RADIO_NRF24 #define MY_GATEWAY_W5100 #define MY_SOFTSPI #define MY_SOFT_SPI_SCK_PIN 14 #define MY_SOFT_SPI_MISO_PIN 16 #define MY_SOFT_SPI_MOSI_PIN 15 #define MY_RF24_CE_PIN 5 #define MY_RF24_CS_PIN 6 #define MY_IP_ADDRESS 192,168,0,66 // If this is disabled, DHCP is used to retrieve address #define MY_PORT 5003 #define MY_MAC_ADDRESS 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED #define MY_DEFAULT_ERR_LED_PIN 7 // Error led pin #define MY_DEFAULT_RX_LED_PIN 7 // Receive led pin #define MY_DEFAULT_TX_LED_PIN 7 // Transmit led pin #include <Ethernet.h> #include <MySensors.h> void setup(){ delay(10000); } void loop(){ } ``
Are you running domoticz on a raspberry? If so, you could skip the arduino and connect the radio on the rpi directly.
@hiddenuser Your code seems OK apart from the fact it doesnt seem to do anything. Randomly missing data when using an nrf24 could be due to data just not arriving over the link although with shot distance that is rare. Nevertheless you could disconnect the w5100 and check a serial.print for a while to see if data is still missing.
I dont have much experience using the soft spi, only using hardware SPI. You may want to consider Gohan' s suggestion
- hiddenuser last edited by hiddenuser
@hiddenuser I understand. Not sure if that is possible through a W5100/arduino, I guess it is but might not be easy
Ethernet gateway works either way, it is only a matter of personal taste. Personally I did go for the raspberry gw because I have less stuff around and I save an arduino board.
- Jonathan Caes last edited by
Hi everyone,
Is it possible to build an ethernet gateway with a RFM69 radio module?
Because I tried this a while ago and that didn't work because of a software problem in the library's. Is that already solved or not?
Thanks!
With development branch it should be solved, but I still have to try
@Jonathan-Caes I did, with an RFM69HW an arduino pro mini and a funduino Ethernetmodule. Used the setup from computourist in github
hello @Ed1500, i have the same problem as @Mitja-Blazinsek. i have a w5100 module (funduino), arduino pro mini and nrf24 radio. i try to use your tip, including a delay in setup() but it doen't work yet, the gateway isn't reached using ping. is necesary another change? did you move the setup() function in the program? thanks!!
@Toni-Ramos Sorry to hear that. Are you using Soft SPI or hardware SPI for both?
Can you get any connection if you just use it as webserver without the NRF24?
@Ed1500 i'm using softSPI as the example. I can see ping works correctly if i comment "#define MY_RADIO_NRF24". If not, the gateway shows the following messages continuosly:
0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.1.1
0;255;3;0;9;TSM:FAIL:RE-INIT
@Ed1500 after tests with different versions of the library i discovered a bad welded pin in the nrf24. It seens to work fine now,i'll conect a node to the gateway and check all
@Toni-Ramos Glad you got it solved. apologies I had not seen yr earlier reply yet, but thats no longer relevant.
Always good to check the joints
What is the best way to make the gateway wait for ip address (it's set to use dhcp) when power goes down? I noticed that the gateway starts faster than the router and doesn't get the ip address so I had to push the reset button to get it to work.
@gohan maybe add a wait call in before()? Not sure if before() is run early enough, but it might be worth a try.
Maybe the library can be modified to try for a longer time before giving up.
Maybe I could make a check if there is no client connected I could reset the board, but I was wondering if there is any was to know if the system has a valid ip.