Carlos A. Falcon

Results 2 comments of Carlos A. Falcon

Hi, you should use analogSensor10HS.removeAllListeners('change') to remove the event listener

You need to cancel the events when you stop a sensor otherwise it will continue to trigger the sensor event, on reaching 10 you get the memory leak warning, this...