Comments (17)
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.
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.
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.
I already did what you suggested and here is the result. Some errors got fixed but some still remained.
from esp8266-iot-framework.
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.
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.
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.
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.
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.
Thanks, happy you got it working, and hopefully using the framework will be more enjoyable than the initial struggles :).
from esp8266-iot-framework.
from esp8266-iot-framework.
from esp8266-iot-framework.
from esp8266-iot-framework.
from esp8266-iot-framework.
from esp8266-iot-framework.
from esp8266-iot-framework.
from esp8266-iot-framework.
Related Issues (20)
- Holding connections open for long periods of time HOT 4
- Event on Dashboard Change HOT 12
- Detect if captive portal is running and WiFi is in Ad-hoc mode HOT 3
- Separator and titol in config page HOT 1
- Enhancement: Adding "label" in dashboard HOT 4
- mDNS not working HOT 1
- Error when run "npm ci" HOT 7
- Failing at Step 9. HOT 3
- WiFi passwords including "+" not working HOT 3
- 403 Forbidden response to GET request HOT 1
- Dependency issues in library HOT 4
- Request: click button in dashboard HOT 1
- WIFI reconnect HOT 1
- The cipher AES128-SHA is not supported for TLSv1.2. HOT 5
- Import issue Arduino IDE 2.1.1 HOT 3
- html.h not being rebuild HOT 1
- ssl.wrap_socket() gots removed within python 3.12
- Json name with spaces HOT 1
- Missing dependancy HOT 1
- Upload empty file failes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp8266-iot-framework.