Aha! Glad it's sorted! Really odd about the low power reset error though?
You should be able to do Serial2.removeAllListeners() to remove them? You could also check with process.memory to make sure it's actually freed your old AT instance?
About the packet sizes: the data comes into Espruino pretty much whenever, and Espruino handles it as and when it can. If the handling takes longer then the handler gets called less often - but with more data... So as you make more complex projects I'd expect the packet sizes you get to increase, or some to be larger than others (if a function took a long time to execute while data was being received).
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Aha! Glad it's sorted! Really odd about the low power reset error though?
You should be able to do
Serial2.removeAllListeners()
to remove them? You could also check withprocess.memory
to make sure it's actually freed your oldAT
instance?About the packet sizes: the data comes into Espruino pretty much whenever, and Espruino handles it as and when it can. If the handling takes longer then the handler gets called less often - but with more data... So as you make more complex projects I'd expect the packet sizes you get to increase, or some to be larger than others (if a function took a long time to execute while data was being received).