When PLUGIN_INIT is called, things like this might happen:
Plugin_052_SoftSerial = new SoftwareSerial(...);
We need a way to deallocate that memory when the user is switching around plugins. This will save memory, but also make issue-reporting more consistent: Currently some people might run into memory issues when switching between certain plugins. These issues will be vague and hard to reproduce. If we deallocate memory we can solve this.
Maybe some hardware also needs to be in a certain state before switching to another plugin. This also can be done in the PLUGIN_STOP function.
When PLUGIN_INIT is called, things like this might happen:
Plugin_052_SoftSerial = new SoftwareSerial(...);We need a way to deallocate that memory when the user is switching around plugins. This will save memory, but also make issue-reporting more consistent: Currently some people might run into memory issues when switching between certain plugins. These issues will be vague and hard to reproduce. If we deallocate memory we can solve this.
Maybe some hardware also needs to be in a certain state before switching to another plugin. This also can be done in the PLUGIN_STOP function.