Unloading modules to save RAM #14067
brianreinhold
started this conversation in
General
Replies: 1 comment 3 replies
-
|
You can do something like |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to unload a module that has been imported? In particular I have the following import statement
from picocore.bt.btsig_thermometer import BtSigThermometerbtsig_thermometeris a module I wroteI import the module after I have connected to a BT SIG health device and want to handle the thermometer service. The code looks like this
When the device disconnects, I would like to unload the module. I tried
del picocore.bt.btsig_thermometeras done in some other archived threads but I get a
picocore not definederror. Is it possible to remove an imported module in today's Micropython? If so, how would I do that?Beta Was this translation helpful? Give feedback.
All reactions