Closed dkmatt0 closed 6 years ago
What is the remaining memory you get after compiling on arduino uno, I suspect you don't have enough. Is there some warning from the IDE compiler
Global variables use 1535 bytes (74%) of dynamic memory, leaving 513 bytes for local variables. Maximum is 2048 bytes.
It is not enough ?
should be OK, what is the size of the sketch versus free space after compilation?
Sketch uses 29164 bytes (94%) of program storage space. Maximum is 30720 bytes. Global variables use 1529 bytes (74%) of dynamic memory, leaving 519 bytes for local variables. Maximum is 2048 bytes.
Do you want that ?
Strange when I compile for arduino uno I have an error message saying there is not enough memory:
Le croquis utilise 29260 octets (90%) de l'espace de stockage de programmes. Le maximum est de 32256 octets.
Les variables globales utilisent 2198 octets (107%) de mémoire dynamique, ce qui laisse -150 octets pour les variables locales. Le maximum est de 2048 octets. Mémore insuffisante ; consulter la page http://www.arduino.cc/en/Guide/Troubleshooting#size pour obtenir des astuces sur comment le réduire. Erreur de compilation pour la carte Arduino/Genuino Uno
It is odd that you are able to compile without error if you have IR and RF activated.
Please note that I don't think it is a good idea to use a UNO for more than one gateway. If you want to use two gateways I advise to go for a Mega
I optimize the code just a little : char mqtt_user[13] = "homeassistant"; char mqtt_pass[7] = "welcome";
But, I have been order a Arduino Mega I waiting it
Maybe we could close this issue as these 2 gateways simultaneously ate not supported on UNO ?
Hello,
(sorry for bad english, I'm french)
If I use only ZgatewayRF, no problem. But, if I use ZgatewayRF AND ZgatewayIR, I have a problem with IP address (in serial monitor):
OpenMQTTGateway ip: 192.168.10.3 Ethernet ok 1883 Connecting to MQTT by IP adress 19~.168.10.2
See the last line, in config file, it's 192.168.10.2, not 19~.168.10.2 No problem if I use only ZgatewayIR
I work on Arduino Uno R3, also, I have been tested on a compatible arduino pro mini, same problem. I use the last beta version (commit 14d8eef7cd0dd686ceffe8167a382e11e1ece45a), same problem with V0.7