Errors compiling EthernetGateway with <UIPEternet.h>
-
I had the same problem and solved it by replacing the contents of your UIPEthernet library folder with this:
https://github.com/ntruchsess/arduino_uip -
FWIW, Replacing the UIPE library with the current version from github and using the current 1.5.7b IDE seems to be working fine for me here.
You will have to edit UIPEthernet/utility/uipethernet-conf.h and change #define UIP_CONF_UDP to be 0 (line 9), or it will not fit in the available memory.
Also remember you will have to restart the IDE after changing the libraries.
I have not had it running very long, but have blasted loads of commands through it and it seems to be stable so far, using it with a current nano and the NRF24L01+PA+LNA radio, powered via USB.
-
Just to let you know, I've released UIPEthernet Version 1.09 / 1.59: https://github.com/ntruchsess/arduino_uip/releases. This release contains both a fix for a condition that caused the ENC28J60 chip to freeze and an improvement that reduces timer-induced latency from 250ms to 10ms aprox.
Another hint when compiling Ethernet-gateway with UIPEthernet:
Set UIP_CONF_UDP 0 greatly reduces flash memory footprint by not including UDP-code (has been mentioned in this thread before)
Reduce UIP_CONF_MAX_CONNECTIONS will lower RAM-usage. As Ethernet-Gateway works as Server with only a single Client that stays connected to the gateway configuring a value of 1 should work fine.
- Norbert
-
Just to let you know, I've released UIPEthernet Version 1.09 / 1.59: https://github.com/ntruchsess/arduino_uip/releases. This release contains both a fix for a condition that caused the ENC28J60 chip to freeze and an improvement that reduces timer-induced latency from 250ms to 10ms aprox.
Another hint when compiling Ethernet-gateway with UIPEthernet:
Set UIP_CONF_UDP 0 greatly reduces flash memory footprint by not including UDP-code (has been mentioned in this thread before)
Reduce UIP_CONF_MAX_CONNECTIONS will lower RAM-usage. As Ethernet-Gateway works as Server with only a single Client that stays connected to the gateway configuring a value of 1 should work fine.
- Norbert
-
@ntruchsess said:
BTW.... is there any way to have a combined version for both the 1.0 and 1.5 version of the IDE. People tends to get confused about this.
-
As long you intent to support both 1.0 and 1.5 IDE you should stay with UIPEthernet 1.0.9 as latest 1.5.x IDE fully supports 1.0 library format. 1.59 is suitable if you intent to compile for Arduino DUE (or YUN but that is another story unrelated to UIPEthernet).
If you have any suggestions how this could be improved please let me know. I'm not very happy with this situation either. Eventually Arduino 1.5.x will overcome beta phase so 1.0.x IDE will become deprecated, but for now it seems we have to live with it.
BTW: I've written a MySensors-module for FHEM: http://forum.fhem.de/index.php/topic,26807.msg210234.html#msg210234
-
Ok, I'll switch back to the 1.0.9 version then.
BTW: I've written a MySensors-module for FHEM
Ohh.. sweet! I would be happy adding a page on www.mysensors.org when you and @hexenmeister feel ready.
-
The FHEM module by @ntruchsess works well.
Tested with humidity- and relay sketch (with serial gateway). I'm still testing. ;) -
Sounds great!
Could perhaps you provide a few screenshots and FHEM key features by email to me?
You can use one of the other pages as a template. E.g. http://www.mysensors.org/build/pidome