I am researching about Arduino and control it through Blutooth and display data to Android.
I have problem with block list when design Android app. I want to display multi data sensor from Arduino ( light and temp number sensor) and separate each value sensor with "," into different label to display clearly
When I run first programe without if.. then condition it display on Android that “Select list item: List index too large”
Then I found in some forum that have to use if..then condition but unfortunately, it appeared that “ Bad Argrument to > …. ( in the pictue I attacted)
And can I use both string and number data from Arduino and send it to Android ?
Can anyone find out my issue and fix it for me. Thank you very much
text ReceiveText(number numberOfBytes)- Receive text from the connected Bluetooth device. If numberOfBytes is less than 0, read until a delimiter byte value is received.
What is the (= NL = LF = Line Feed = \n.),
ps :I collape 2 if into 1 If (connected and bytes available > 0). Is it ok ?
About -1 bytes in the .ReceiveText block
I make a labe to check byte to recive and I found out that when error byte available to recive # 0 (1,3,23,...) and when nomally byte = 0;
I dont't understand this, because when I set label 4 text to - call BlutoothClient ReceiveText number of Byte to "-1" , nothing display
Can you make block clearly. Thanks
About -1 bytes in the .ReceiveText block
I make a labe to check byte to recive and I found out that when error byte available to recive # 0 (1,3,23,...) and when nomally byte = 0;
I dont't understand this, because when I set label 4 text to - call BlutoothClient ReceiveText number of Byte to "-1" , nothing display
text ReceiveText(number numberOfBytes)