First, I appologize as I wonder this will sound a very stupid question for most people here, but I already spend many days firuging out how to get OpenMQTTgw compiled, and I’m still stalled, and the online documentation assume the reader is comfortable with this, and this is not my case
So, I want to use OpenMQTTgw on an ESP8266 device. My current HW setup is a single ESP8266 devicewith only IR emitter and receiver as described on the wiki here : IR with ESP8266
I cloned the github and tried to compile it with arduino IDE, but I got many dependencies issues. I then copied the “lib” content into my “Library” arduino homedir, then I got many compilation errors, like these:
/home/rico/Arduino/libraries/WiFiManager/WiFiManager.cpp: In member function 'void WiFiManager::setupConfigPortal()':
/home/rico/Arduino/libraries/WiFiManager/WiFiManager.cpp:146:71: error: no matching function for call to 'ESP8266WebServer::on(String, std::_Bind_helper<false, void (WiFiManager::*)(), WiFiManager* const>::type)'
server->on(String(F("/")), std::bind(&WiFiManager::handleRoot, this));
I also tried to compile v0.8 instead of MASTER, with the same results
I finally flashed the v0.8 binary image released, and it works… but the pin assignment is not compatible with my ESP8266, as it expects IR emitted drived by pin 1, but the ESP8266 have only GPIO from 0 to 15 !
So back to first step, I definitively need to compile successfully the code ! Would it be possible to get some explanation on how to proceed ? As you’ll probably understood, These are my first tries with Arduino IDE and I probably missed some steps…
Thanks for your very fast reply !
I finally removed all my existing Arduino environment (removing my ~/.arduino15 and ~/Arduino directories) then re-imported ESP8266 boards from ESP8266 github, and finally moved libs from omg lib directory into ~/Arduino/Libraries directory as suggested, and then I’m finally able to compile to upload openMQTTgw into my ESP directly from the Arduino IDE
But I’m still confused by pin assignment: my board is an ESP12F as seen on this page ESP12-F
GPIO0 is not the best choice as it select the boot mode for the board. Ideally I would use GPIO4/5 for my application but you table is not clear on how to declare the pin assignment : should I use the GPIO numbers, or the pin numbers, or something else ?
I definitively don’t understand: when I flash your released binary, the ESP is working correctly, even if I can’t use the IR receiver port, but when I upload the code (v0.8) from Arduino IDE, the ESP cycle boot with these messages:
I loaded the code into a NodeMCU 1.0 board, and it worked prefectly !
So what the hell can be wrong with my ESP-12F board ??? I noticed the OpenMQTTgw parameters (SSID, MQTT address, user & pwd) are kept between flashes. So I assume the whole flash is not erased during the uploading sequence ? Maybe some piece of code is remaining somewhere and it shouldn’t ?
I tried to erase the flash with esptool.py utility, then flashed once again the ESP module, and guess what ? now it works !
I sincerly thank you for your availibility and good advices, and I appologize for the noise
And of course, many thanks for your hard work to release this nice piece of code