logo elektroda
logo elektroda
X
logo elektroda

Implementing WiFi Setup and OTA Features in OpenBeken for DIY Software

rickbronson 687 2
ADVERTISEMENT
  • #1 20813781
    rickbronson
    Level 3  

    Sorry if this has been answered before, I did a search but nothing came up.
    I'm not really interested in the home automation aspect of OpenBeken but I love 1) the WiFi setup feature and 2) the OTA feature. My question is: Is there a way to have these two features but get rid of everything else so I can run DIY software to do my task?

    Thanks much for any help.

    Rick
  • ADVERTISEMENT
  • #2 20814105
    p.kaczmarek2
    Moderator Smart Home
    Well, of course it's possible, but do you really want to remove everything else? To save memory?
    OBK is already modular:
    https://github.com/openshwprojects/OpenBK7231T_App/blob/main/src/obk_config.h
    You can disable drivers you don't need and write your own custom driver.

    Some things are integrated to the core, like HTTP server, but HTTP server is very useful for device configuration and debugging. We have a logger system. We have command interpreter, etc., which you could also remove if you want, but you'd just have to do it manually.

    Our OTA also partially depends on our HTTP server, but that's obvious, since it's the simplest solution.

    What is your use case here? You can fork OBK and just remove the components you don't need, it's modular, you can remove all drivers, etc

    Added after 1 [minutes]:

    PS: I would suggest you to just write your own driver for OBK instead, and maybe disable build of other drivers to save space, that may fit your use case, and that way you will still be able to merge updates and security fixes from main codebase
    Helpful post? Buy me a coffee.
  • #3 20815483
    rickbronson
    Level 3  

    Thanks so much for the very thorough response! You are right, I probably don't need to get rid of everything and probably can just implement a driver for what I want to do. I'll give it a try and see how it goes.

    Cheers,

    Rick
ADVERTISEMENT