//ArduinoToApp.ino Chris Ward 29/10/2019 21:56:22 //Fake data stream to test App. Classic Bluetooth //vars unsigned long lgUpdateTime; int iVal = 50; void setup() { Serial.begin(9600); lgUpdateTime = millis(); } void loop() { if(millis() - lgUpdateTime > 6000) //Loop approx every 6 seconds { lgUpdateTime = millis(); if (Serial.connected()) { //To App via Bluetooth iVal = iVal + 2; Serial.print(iVal); Serial.println(); //This tells App "End of Data" //= Ascii LineFeed Char Num 10 } } }