Hi Everyone,
I’m rather new with Kodular (using it a couple of days). I’m making an app to controll an arduino with bluetooth. I managed to make a layout and communicate with the arduino by bluetooth. But now comes the problem.
Once connection is made, everything is ok. But when I send a 2-byte number, the arduino receives the 2-byte number but after that it keeps receiving a “0” as 2-byte number. I tried sending a number in text format and that works. no zeros after the text is send…
Someone experienced the same thing? And how can it be resolved? (except for sending everythin in text and converting it to int in the arduino )
This is the part managing the buetooth:
update: the arduino output:
Pushing the FLdown button and releasing it:
Received - 52 (4 sent as text is received as 52 in integer)
Received - 14
Received - 0 (0 received by arduino, but is not a result of releasing fldown)
Received - 0
Received - 0
pushing and releasing FLup (2x)
Received - 0 (0 that I sent received)
Received - 0 (didn’t send this one…)
Received - 10 (10 received when releasing)
Received - 0 (and again receiving unwanted 0…)
Received - 0
Received - 0
Received - 0
Received - 0
Received - 0
Received - 0
Received - 10
Received - 0
Received - 0
Received - 0
Received - 0
Received - 0
Received - 0