In example "5.- App requests temperature and humidity to the Arduino. The Arduino sends values" I didn't use Clock.
Try example.
7.- App gets the value of two potentiometers. but...
- Do not use potentiometers.
- This code
int value_pot0;
int value_pot1;
String value;
void setup() {
Serial.begin(9600);
}
void loop() {
value_pot0 = random(0,1023);
value_pot1 = random(0,1023);
value = (String) value_pot0 + "," + (String) value_pot1;
Serial.println(value);
delay(200); // It should be slower than the Clock Interval.
}
Clock. Interval = 151
DelymiterByte = 10