I'm trying to send the value of 2 sliders to Arduino by Bluetooth.
I have managed to send the values (from 0 to 100) of the two sliders separated by "|", the problem is that in the Arduino terminal, it appears cut character by character (for example, if the sliders are in positions 10 and 35 respectively, in the terminal I get "1" in one line, "0" in the next line, then "|", "3" and finally "5") all separated line by line.
This is the Arduino code:
#include <SoftwareSerial.h>
SoftwareSerial BT(10,11);
char value;
void setup() {
Serial.begin(9600);
BT.begin(9600);
}
void loop() {
if( BT.available() ){
value=BT.read();
Serial.println(value);
}
And the App Inventor one in the image and the aia:
Pruba_BT_1.aia (3.0 KB)