Replies: 1 comment 13 replies
-
Hello @Hieromon good morning I think I've gotten a little lost with this example and I haven't been able to check it or understand it very well yet. 1st question the condition of my implementation was that it does not appear in the menu I think I understand that you want to be able to disable the driver without the need for a reboot of the ESP board, and in a way that saves as much as possible the size of the dynamic memory? It seems great to me, although in my use cases I understand that when restarting and not loading, let's say, the setup of that edge driver, it will not consume memory (is it correct?) the following video shows freeharp in my sketch with: img-8178_ubFZU5Y8.mp4by the way is 3 |
Beta Was this translation helpful? Give feedback.
-
This topic will examine the dynamic attach and detach availability of EdgeDriver as proposed by @FRANAIRBUS in Discussoins#1.
We use EdgeDriverEnabler.ino as the source code for this discussion. It is a skeleton to discover the appropriate EdgeUnified API and will not hesitate to break it.
So @FRANAIRBUS, I prepared EdgeDriverEnabler.ino example above based on your comment. It's based on my perception of a use case for keeping EdgeDriver's enabled state and menu display constant during the loop() function. It has 3 virtual EdgeDrivers and displays stats for each. The root
/
URI is the so-called menu panel, which you can use to select the enabled state of the EdgeDrivers. It is not fundamentally different from the control scheme you have presented in this comment.The logic at the core of its control is quoted below.
The above code added AutoConnectAux release to the logic you devised to have the effect of reducing heap consumption. As you can see from the code above, it is simple but involves many steps. We have the possibility to discover there is an API that EdgeUnifed should be equipped with.
Break this skeleton by creating a new EdgeUnified API while considering your use case.
Beta Was this translation helpful? Give feedback.
All reactions