TigerKing_BLE.aia (165.1 KB)
The project is a toy tank, it should send five different value and separate with "," and end with \n
the joyconx,joycony,turret_turn,fire,lockon ,now im stuck at when i send string to arduino its all good but after 20 second or so it stoped.And the bluetooth connection is still on.The disconnect button sometimes work sometims dont.
now im just testing so my arduino code only have recive and print it out
void setup() {
Serial.begin(9600);
}
void loop() {
if (Serial.available() > 0) {
String receivedValues = Serial.readStringUntil('\n');
Serial.print("Received: ");
Serial.println(receivedValues);
}
}