OPEnSLab-OSU / Loom-V4

Open Source Internet Of Things Rapid Prototyping Framework For Environmental Sensing Applications
5 stars 1 forks source link

Strings in Arduino are causing us to run out of memory and inexplicably crash #70

Closed WL-Richards closed 1 year ago

WL-Richards commented 1 year ago

Describe the bug All instances of String need to be readapted to use cstrings (char[]) as we are running out of memory as a result

Hardware in Use This affects all Loom projects

WL-Richards commented 1 year ago

All string operations must be conducted using C-Strings that are \0 (null character) terminated. This allows the system to run without allocating any additional memory per cycle

WL-Richards commented 1 year ago

All String classes have been removed that were causing any noticeable leaks

Work still needs to be done to determine the stability of this code as other things have changed as a result of the refactor and may no longer work