Code Monkey home page Code Monkey logo

Comments (5)

maakbaas avatar maakbaas commented on August 23, 2024 2

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.

maakbaas avatar maakbaas commented on August 23, 2024 1

See this location for the published package :).

https://platformio.org/lib/show/10789/ESP8266%20IoT%20Framework

from esp8266-iot-framework.

TyIsI avatar TyIsI commented on August 23, 2024

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 main setup and loop
  • 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.

factormystic avatar factormystic commented on August 23, 2024

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.

maakbaas avatar maakbaas commented on August 23, 2024

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)

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.