Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upTroubleshooting
Compilation error
You should not have a compilation error if you use the versions of the libraries present into the lib folder,
this badge show you the state of the compilation of the master. If you see a green badge this means that the code compilation is OK with the configuration given in the wiki. Check your IDE environment version, boards version, libraries version before submitting an issue or a question.
Verify especially that the libraries provided with OpenMQTTGateway/lib are located into your "sketchbook folder"/libraries
Regarding ESP32 arduino environment, currently if you take the last version you will not be able to compile due to size of sketch, the solution is to take a previous liter version like this one
ESP32 stop working after a few hours
If your ESP32 stop working after a few hours you can try to deactivate multicore functionnality (valid if you use only ZgatewayBT and not the other gateways), so as to do this you have to comment this line into user_config.h
ESP32 compilation errors related to wifi
If you get one or several of the following errors:
error: 'WIFI_STA' was not declared in this scope
error: 'class WiFiClass' has no member named 'mode'
error: no matching function for call to 'WiFiClass::macAddress()
You have a conflict between Arduino default wifi library and ESP32 one. So as to resolve this issue you should move or remove the Arduino wifi library (Arduino Sketchbook folder\libraries\WiFi) in order to enable the IDE to take the one from ESP32 (Arduino Sketchbook folder\hardware\espressif\arduino-esp32\libraries\WiFi) More info on this topic
Not able to send or receive RF or IR
→ Verify your power supply voltage with a multimeter, it should be 5V (can be 12V for FS1000A emitter), please note that on NodeMCU V3 the Vin does not supply 5V contrary to NodeMCU V1
→ Verify your wiring
→ To eliminate issues of OpenMqttGateway or you home controller try uploading basic examples from the libraries directly (like SendDemo for RF or IRSendDemo for IR) and execute them. If it doesn't work this means that you have mostly an issue related with your hardware or due to IDE/library version used.
Regarding the IR led emitter you can replace it with a normal led and see if it light on when you send an mqtt command
→ If you are only unable to receive RF on nodemcu (or if it only works when a serial connection is active):
try with D2 instead of D3 and put define RF_RECEIVER_PIN 4 // D2 on nodemcu in config_rf.h instead of define RF_RECEIVER_PIN 0 // D3 on nodemcu
Exception seen on serial monitor:
Hey I got a callback malloc memcpy 7 Exception (2):
→ You are not using the last update of ESP8266 into board manager, go to your Arduino IDE and update it, should be at least 2.3.0
You don't see the messages appearing on your broker but they appears on the serial monitor
This is due to a too small mqtt packet size, open pubsubclient.h from pubsubclient library and set:
try to modify in pubsubclient.h:
#define MQTT_MAX_PACKET_SIZE 1024
The other option is to use the pubsubclient library provided in the OMG repository folder.
If you didn't find your answer here post a question to the forum: