Code Monkey home page Code Monkey logo

Comments (17)

maakbaas avatar maakbaas commented on August 23, 2024 1

Ah, this point should indeed be made more clear in the documentation. Thanks for reporting.

The thing is, since you are using the configManager example, you also need to use the corresponding JSON file for the configManager. So the best you can do is to copy the example JSON file into your project folder, and then add build_flags = -DCONFIG_PATH=configuration.json into your platformio.ini as described here

from esp8266-iot-framework.

maakbaas avatar maakbaas commented on August 23, 2024 1

I am not planning to work on that, but feel free to add the functionality yourself. It can be considered as a pul request.

from esp8266-iot-framework.

maakbaas avatar maakbaas commented on August 23, 2024

You can probably resolve this by opening the PlatformIO terminal using the small button [>] in the bottom of VS code, and then executing the command

pip install asn1crypto

Let me know if this works. In one of the coming weeks I will update the scripts to do this automatically since it has caused more confusion before. Thanks for the clear visualisation!

from esp8266-iot-framework.

Shalke04 avatar Shalke04 commented on August 23, 2024

I already did what you suggested and here is the result. Some errors got fixed but some still remained.
Webp net-gifmaker (1)

from esp8266-iot-framework.

maakbaas avatar maakbaas commented on August 23, 2024

Can you paste as text the full output of the build command (not what is on the problems tab, but the terminal output)?

from esp8266-iot-framework.

Shalke04 avatar Shalke04 commented on August 23, 2024

Executing task in folder Test_Project_Framework: C:\Users\shalk.platformio\penv\Scripts\pio.exe run <

Processing esp12e (platform: espressif8266; board: esp12e; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp12e.html
PLATFORM: Espressif 8266 (2.6.2) > Espressif ESP8266 ESP-12E
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES:

  • framework-arduinoespressif8266 3.20704.0 (2.7.4)
  • tool-esptool 1.413.0 (4.13)
  • tool-esptoolpy 1.20800.0 (2.8.0)
  • toolchain-xtensa 2.40802.200502 (4.8.2)
    LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 34 compatible libraries
    Scanning dependencies...
    Dependency Graph
    |-- 1.6.1
    | |-- 1.2.3
    | | |-- 1.2.2
    | | | |-- 1.0
    | | |-- 1.0
    | | |-- 1.0
    | | |-- 6.17.2
    | |-- 6.17.2
    | |-- 1.0
    | |-- 1.2
    | | |-- 1.0
    | |-- 1.1.0
    | | |-- 1.0
    | |-- 1.0
    | |-- <LittleFS(esp8266)> 0.1.0
    |-- <LittleFS(esp8266)> 0.1.0
    Building in release mode
    Compiling .pio\build\esp12e\src\main.cpp.o
    Compiling .pio\build\esp12e\libef6\ESP8266WiFi\ESP8266WiFiAP.cpp.o
    Compiling .pio\build\esp12e\libef6\ESP8266WiFi\ESP8266WiFiGeneric.cpp.o
    src\main.cpp: In function 'void loop()':
    src\main.cpp:43:28: error: 'struct configData' has no member named 'dummyInt'
    configManager.data.dummyInt++;
    ^
    src\main.cpp:55:32: error: 'struct configData' has no member named 'dummyInt'
    configManager.data.dummyInt + 1,
    ^
    src\main.cpp:59:9: error: too many initializers for 'configData'
    };
    ^
    Compiling .pio\build\esp12e\libef6\ESP8266WiFi\ESP8266WiFiGratuitous.cpp.o
    *** [.pio\build\esp12e\src\main.cpp.o] Error 1
    ==================================================================== [FAILED] Took 9.72 seconds ====================================================================
    The terminal process "C:\Users\shalk.platformio\penv\Scripts\pio.exe 'run'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

Executing task in folder Test_Project_Framework: C:\Users\shalk.platformio\penv\Scripts\pio.exe run <

Processing esp12e (platform: espressif8266; board: esp12e; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp12e.html
PLATFORM: Espressif 8266 (2.6.2) > Espressif ESP8266 ESP-12E
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES:

  • framework-arduinoespressif8266 3.20704.0 (2.7.4)
  • tool-esptool 1.413.0 (4.13)
  • tool-esptoolpy 1.20800.0 (2.8.0)
  • toolchain-xtensa 2.40802.200502 (4.8.2)
    LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 34 compatible libraries
    Scanning dependencies...
    Dependency Graph
    |-- 1.6.1
    | |-- 1.2.3
    | | |-- 1.2.2
    | | | |-- 1.0
    | | |-- 1.0
    | | |-- 1.0
    | | |-- 6.17.2
    | |-- 6.17.2
    | |-- 1.0
    | |-- 1.2
    | | |-- 1.0
    | |-- 1.1.0
    | | |-- 1.0
    | |-- 1.0
    | |-- <LittleFS(esp8266)> 0.1.0
    |-- <LittleFS(esp8266)> 0.1.0
    Building in release mode
    Compiling .pio\build\esp12e\src\main.cpp.o
    Compiling .pio\build\esp12e\libef6\ESP8266WiFi\ESP8266WiFiMulti.cpp.o
    Compiling .pio\build\esp12e\libef6\ESP8266WiFi\ESP8266WiFiSTA-WPS.cpp.o
    Compiling .pio\build\esp12e\libef6\ESP8266WiFi\ESP8266WiFiSTA.cpp.o
    src\main.cpp: In function 'void loop()':
    src\main.cpp:43:28: error: 'struct configData' has no member named 'dummyInt'
    configManager.data.dummyInt++;
    ^
    src\main.cpp:55:32: error: 'struct configData' has no member named 'dummyInt'
    configManager.data.dummyInt + 1,
    ^
    src\main.cpp:59:9: error: too many initializers for 'configData'
    };
    ^
    *** [.pio\build\esp12e\src\main.cpp.o] Error 1
    ==================================================================== [FAILED] Took 6.77 seconds ====================================================================
    The terminal process "C:\Users\shalk.platformio\penv\Scripts\pio.exe 'run'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

from esp8266-iot-framework.

Shalke04 avatar Shalke04 commented on August 23, 2024

Webp net-gifmaker (2)
Copied json file into project folder and added build_flags into platformio.ini. Still without success

Executing task in folder Test_Project_Framework: C:\Users\shalk.platformio\penv\Scripts\pio.exe run <

Processing esp12e (platform: espressif8266; board: esp12e; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp12e.html
PLATFORM: Espressif 8266 (2.6.2) > Espressif ESP8266 ESP-12E
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES:

  • framework-arduinoespressif8266 3.20704.0 (2.7.4)
  • tool-esptool 1.413.0 (4.13)
  • tool-esptoolpy 1.20800.0 (2.8.0)
  • toolchain-xtensa 2.40802.200502 (4.8.2)
    LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 34 compatible libraries
    Scanning dependencies...
    Dependency Graph
    |-- 1.6.1
    | |-- 1.2.3
    | | |-- 1.2.2
    | | | |-- 1.0
    | | |-- 1.0
    | | |-- 1.0
    | | |-- 6.17.2
    | |-- 6.17.2
    | |-- 1.0
    | |-- 1.2
    | | |-- 1.0
    | |-- 1.1.0
    | | |-- 1.0
    | |-- 1.0
    | |-- <LittleFS(esp8266)> 0.1.0
    |-- <LittleFS(esp8266)> 0.1.0
    Building in release mode
    Compiling .pio\build\esp12e\src\main.cpp.o
    Compiling .pio\build\esp12e\libef6\ESP8266WiFi\ESP8266WiFi.cpp.o
    Compiling .pio\build\esp12e\libef6\ESP8266WiFi\ESP8266WiFiAP.cpp.o
    Compiling .pio\build\esp12e\libef6\ESP8266WiFi\ESP8266WiFiGeneric.cpp.o
    Compiling .pio\build\esp12e\libef6\ESP8266WiFi\ESP8266WiFiGratuitous.cpp.o
    Compiling .pio\build\esp12e\libef6\ESP8266WiFi\ESP8266WiFiMulti.cpp.o
    src\main.cpp: In function 'void loop()':
    src\main.cpp:43:28: error: 'struct configData' has no member named 'dummyInt'
    configManager.data.dummyInt++;
    ^
    src\main.cpp:55:32: error: 'struct configData' has no member named 'dummyInt'
    configManager.data.dummyInt + 1,
    ^
    src\main.cpp:59:9: error: too many initializers for 'configData'
    };
    ^
    *** [.pio\build\esp12e\src\main.cpp.o] Error 1
    ==================================================================== [FAILED] Took 7.20 seconds ====================================================================
    The terminal process "C:\Users\shalk.platformio\penv\Scripts\pio.exe 'run'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

Executing task in folder Test_Project_Framework: C:\Users\shalk.platformio\penv\Scripts\pio.exe run <

Processing esp12e (platform: espressif8266; board: esp12e; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp12e.html
PLATFORM: Espressif 8266 (2.6.2) > Espressif ESP8266 ESP-12E
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES:

  • framework-arduinoespressif8266 3.20704.0 (2.7.4)
  • tool-esptool 1.413.0 (4.13)
  • tool-esptoolpy 1.20800.0 (2.8.0)
  • toolchain-xtensa 2.40802.200502 (4.8.2)
    LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 34 compatible libraries
    Scanning dependencies...
    Dependency Graph
    |-- 1.6.1
    | |-- 1.2.3
    | | |-- 1.2.2
    | | | |-- 1.0
    | | |-- 1.0
    | | |-- 1.0
    | | |-- 6.17.2
    | |-- 6.17.2
    | |-- 1.0
    | |-- 1.2
    | | |-- 1.0
    | |-- 1.1.0
    | | |-- 1.0
    | |-- 1.0
    | |-- <LittleFS(esp8266)> 0.1.0
    |-- <LittleFS(esp8266)> 0.1.0
    Building in release mode
    Compiling .pio\build\esp12e\src\main.cpp.o
    Compiling .pio\build\esp12e\libef6\ESP8266WiFi\ESP8266WiFiSTA-WPS.cpp.o
    Compiling .pio\build\esp12e\libef6\ESP8266WiFi\ESP8266WiFiSTA.cpp.o
    Compiling .pio\build\esp12e\libef6\ESP8266WiFi\ESP8266WiFiScan.cpp.o
    Compiling .pio\build\esp12e\libef6\ESP8266WiFi\WiFiClient.cpp.o
    Compiling .pio\build\esp12e\libef6\ESP8266WiFi\WiFiClientSecureAxTLS.cpp.o
    src\main.cpp: In function 'void loop()':
    src\main.cpp:43:28: error: 'struct configData' has no member named 'dummyInt'
    configManager.data.dummyInt++;
    ^
    src\main.cpp:55:32: error: 'struct configData' has no member named 'dummyInt'
    configManager.data.dummyInt + 1,
    ^
    src\main.cpp:59:9: error: too many initializers for 'configData'
    };
    ^
    Compiling .pio\build\esp12e\libef6\ESP8266WiFi\WiFiClientSecureBearSSL.cpp.o
    *** [.pio\build\esp12e\src\main.cpp.o] Error 1
    ==================================================================== [FAILED] Took 8.43 seconds ====================================================================
    The terminal process "C:\Users\shalk.platformio\penv\Scripts\pio.exe 'run'" terminated with exit code: 1.

Te

from esp8266-iot-framework.

maakbaas avatar maakbaas commented on August 23, 2024

Finally you also need to add -DREBUILD_HTML to the line with the build flags, otherwise the JSON file will not be parsed upon new build. Once you have set this up correctly you can make changes to the JSON file any time you want and these will be reflected in new builds.

Before you can do that you need to install the prerequisites by following step 1 and step 2 from this section in the documentation.

In future versions I will make those steps more automated.

from esp8266-iot-framework.

Shalke04 avatar Shalke04 commented on August 23, 2024

Great, thanks. Now it finally compiled without errors. So I can learn how to modify the whole interface and start using it. It looks awesome

from esp8266-iot-framework.

maakbaas avatar maakbaas commented on August 23, 2024

Thanks, happy you got it working, and hopefully using the framework will be more enjoyable than the initial struggles :).

from esp8266-iot-framework.

Shalke04 avatar Shalke04 commented on August 23, 2024

from esp8266-iot-framework.

clabnet avatar clabnet commented on August 23, 2024

from esp8266-iot-framework.

Shalke04 avatar Shalke04 commented on August 23, 2024

from esp8266-iot-framework.

Shalke04 avatar Shalke04 commented on August 23, 2024

from esp8266-iot-framework.

clabnet avatar clabnet commented on August 23, 2024

from esp8266-iot-framework.

Shalke04 avatar Shalke04 commented on August 23, 2024

from esp8266-iot-framework.

Shalke04 avatar Shalke04 commented on August 23, 2024

from esp8266-iot-framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.