Closed SurpriseMF3000 closed 1 year ago
I figured out that the only way to avoid this is to set session.on = null;
after a full cycle before the next one.
Are there any other ways?
Did You try to cleanup previous event listeners before creating the new session?
To do that, call the function that comes as a result of on(...)
method.
no response, closing...
Hello again;) im facing issues with the listen() function. If im calling the
listen()
function in thestartsession()
function, the phone recognizes when there is an actual data transfer and everything works the first time great. But when im calling thestartsession()
function a second time, thelisten()
output from the first time gets printed and fucks everything up.Is there any way to avoid this?
Thanks for Help!