Hello,
I have to send instructions to a microcontroller over BT.
I use AsyncStreamText and sending the instructions to the micro works fine.
However, the micro does answer.
I do NOT need the answer ...
So, I initialize the inputstream with Null, hoping that would prevent getting stuff back.
like this :
when the activity containing this ends, I get error message :
java.lang.Exception: Sub ast_Newdata was not found.
It looks like, despite the Null init, the data is still somewhere in a buffer or so.
Anybody has an idea how to prevent this ?
PS. I also did try to comment out the "CallSubDelayed" lines in asyncstreamstext class, but, no difference ...
Thanks, Paul.
I have to send instructions to a microcontroller over BT.
I use AsyncStreamText and sending the instructions to the micro works fine.
However, the micro does answer.
I do NOT need the answer ...
So, I initialize the inputstream with Null, hoping that would prevent getting stuff back.
like this :
B4X:
ast.Initialize( Me, "Ast" , Null , btconn.serial1.OutputStream)
java.lang.Exception: Sub ast_Newdata was not found.
It looks like, despite the Null init, the data is still somewhere in a buffer or so.
Anybody has an idea how to prevent this ?
PS. I also did try to comment out the "CallSubDelayed" lines in asyncstreamstext class, but, no difference ...
Thanks, Paul.