Skip to content

XBee 3 Cellular LTE-M/NB-IoT - memory leak #47

Open
@kmm1001001

Description

@kmm1001001

Hello,

I am running a small micropython code loop on XBee 3 Cellular LTE-M/NB-IoT hardware, firmware version 11415. Using examples from the digi documentation and GitHub I simply instantiate a XBee and a network object, test network connection, calculate my next wake up time and then force sleep. Things are running fine except that before I sleep I look at my free and allocated memory. Then I run garbage collection and then look at the memory again. I'm noticing a small memory leak. Its not every time through the loop but over time it adds up. My solution as of now is to set a threshold level and safely shutdown the cell module and reboot. Just wondering if anyone can help debug where I am going astray. Attached is a txt file of my code.

main_py.txt

Thanks,
Kris

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions