Compiling issues

Viewing 10 reply threads
  • Author
    Posts
    • #27152
      Nobodyman
      Participant

        I have set up the project with Arduino IDE 2.
        But I´m not able to compile the code.
        Which library and version is used for WiFiManager?

      • #27170
        Renzo Mischianti
        Keymaster

          Hi,
          you can find all information in the articles.

          ABB Aurora Web Inverter Monitor (WIM): upload the sketch and front end – 9

          Bye Renzo

        • #27189
          Nobodyman
          Participant

            Thank´s a lot, but I don´t find any information about which version of the mentioned modules you used.
            I set up the project with VSCode and PlatformIO and I´m using the latest available module versions. After some adaptions I compiled and flashed a version and uploaded the files which are needed for the webinterface.
            But if I start the webinterface in my browser it only shows a blank page.
            If I look at the page source, it´s there.
            Any hints what´s going wrong?
            Remark: I don´t have a PCB and I used a breadboard for testing. The RS485 interface chip is not connected but this shouldn´t make trouble.

          • #27191
            Renzo Mischianti
            Keymaster

              Hi,
              I extract my library settings for the project.

              esp8266/hardware/esp8266/2.4.2/cores/esp8266
              esp8266/hardware/esp8266/2.4.2/variants/d1_mini

              libraries/ArduinoJson/6.5.0-beta
              libraries/ArduinoThread
              esp8266/hardware/esp8266/2.4.2/libraries/DNSServer
              libraries/EMailSender
              esp8266/2.4.2/libraries/ESP8266WebServer
              esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi
              esp8266/2.4.2/libraries/ESP8266mDNS
              esp8266/hardware/esp8266/2.4.2/libraries/Hash
              libraries/NTPClient/3.2.1
              esp8266/hardware/esp8266/2.4.2/libraries/SD
              esp8266/hardware/esp8266/2.4.2/libraries/SPI
              libraries/Thread/0.0.2
              TimeLib
              Timezone
              libraries/Timezone/1.2.4
              libraries/WebSockets/2.3.5
              WiFiManager
              esp8266/hardware/esp8266/2.4.2/libraries/Wire
              aurora_communication_protocol

              Bye Renzo

            • #27198
              Nobodyman
              Participant

                Great, I tried to set up the project with Arduino IDE 1.8.19 with ESP8266 core 2.4.2 but I still don´t know which WiFiManager library you used.
                You are using
                setSTAStaticIPConfig(_ip, _gw, _sn, _dns1, _dns2)
                but I don´t find any library except ESP_WiFiManager which accepts two DNS servers as parameters.
                Please tell me where to get the correct library.
                Thank you very much!

              • #27219
                Renzo Mischianti
                Keymaster

                  Hi,
                  read the relative article about that, and you find the link on the page already linked.
                  I use a custom version of WiFi Manager.
                  Bye Renzo

                • #27223
                  Nobodyman
                  Participant

                    Thanks a lot for your patience, but it´s a great puzzle for me to get all details.
                    I used https://github.com/xreef/WiFiManager/archive/refs/heads/master.zip and https://github.com/nailbuster/esp8266FTPServer/archive/refs/heads/master.zip.
                    Are these the correct libraries and versions?
                    The result is the same as before with my PlatformIO setup.
                    The webpage remains empty (blank).
                    I think it should show a menu on the left. What am I doing wrong?

                  • #27231
                    Renzo Mischianti
                    Keymaster

                      Hi,
                      for the WiFiManager It’s ok, but disable the FTP server with the relative define for now, It’s not useful.
                      Bye Renzo

                    • #27269
                      Nobodyman
                      Participant

                        Ok, I don´t use it anymore. I use your precompiled binary Aurora_Web_Inverter_Monitor.spiffs.bin instead.
                        The webpage is still empty.
                        Even if I upload all files with Arduino IDE the result is the same.

                        I think the issue it related to aurora-web.min.js.gz. The file is compressed but in index.html I found aurora-web.min.js. How does it work?
                        If I uncompress the file aurora-web.min.js.gz and start a local websever on my PC the menu is visible! But the uncompressed file doesn´t fit in SPIFFS of the ESP8266!

                      • #27398
                        Nobodyman
                        Participant

                          Dear Renzo,
                          what’s about the empty page?
                          Is there a problem with the compiled modules or with the uploaded HTML files?

                        • #27399
                          Renzo Mischianti
                          Keymaster

                            Hi,
                            It’s strange, che if you do something wrong with spiffs size.
                            The file is correct, you can have some other information about the management of gz file in this tutorial.

                            Web Server with esp8266 and esp32: byte array, gzipped pages and SPIFFS – 2

                            Bye Renzo

                        Viewing 10 reply threads
                        • You must be logged in to reply to this topic.
                        Exit mobile version