Comments (5)
I changed the repository to work as a PlatformIO library, while maintaining the possibility to work directly from a clone in pull request #19.
The documentation is updated accordingly.
Only thing I still need to do is to add it to the library manager from PlatformIO.
Let me know if you have any feedback, ideas or issues!
from esp8266-iot-framework.
See this location for the published package :).
https://platformio.org/lib/show/10789/ESP8266%20IoT%20Framework
from esp8266-iot-framework.
Found this project while searching for certificate solutions on ESP(8266) and I'm thinking about adopting it for a project. Thanks for the great work!
Going to brain dump here for a moment.
I think there are roughly 3 options:
- Move the general framework into the lib directory (or a sub-directory) and call the respective "lib_setup" and "lib_loop" functions from the library
- Create a separate app directory within the
src
directory with a separate app.cpp or main.cpp "app_setup" and "app_loop" that get called from the mainsetup
andloop
- Make this into a fully fledged library and provide config macro checks for overriding specific files with custom files
File generation/customization could easily be filtered through the PIO include directory, but I don't know how much complexity this would bring.
I think this could easily be used as a template project or with a project tool, much like create-react-app
.
To me, it would be nice to have this as a library, which could just be invoked as a class instance.
from esp8266-iot-framework.
The Platform IO library is interesting, I'm not very familiar with that option. From glancing at the documentation it looks like that'd mean adding a few files to this repo (and then registering with them I assume).
What would it look like for people who want to use this project in their own code? Guessing it'd be to add it via lib_deps?
from esp8266-iot-framework.
They would indeed simply add it via lib_deps
. For me this also seems the best approach when using PlatformIO.
I will try this out in a branch to see what is needed and if all the pre-build functions of the framework could be implemented within a library as well. Expect a branch somewhere in the coming days.
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.