That would be char[8] Secondinput = Firstinput.toCharArray();
...but like I said, don't declare the variables in the loop.
That would be char[8] Secondinput = Firstinput.toCharArray();
...but like I said, don't declare the variables in the loop.
That's the point ABG made, during the sliding, the values can be nonsense, they are only good when the sliding has stopped.
Try
Secondinput.trim();
int RealServo = Secondinput.toInt();
a friend on discord suggested me that, nope, thats not it either
The rogue value has no numbers in it Juan.
Do the values still show up as rogue on the App side?
ServoValue1.Text and TrueServoValue.Text
nope, those are perfectly fine
...... the time interval of the Sketch loop could be controlled too, using elapsed time. I demonstrated that in the Sketch I posted.
Another possibility is that the AT-09 is not so great. Can we perform an isnumber? like check in the Sketch too?
Then try the loop time interval control in my Sketch.
how do you controll the time interval is the blocks?
We can do it with a Clock Timer, but we probably do not need to.
how do you prefer to do it?
??? Do what?
More ideas:
Use this Slider extension:
[FREE / Open Source] SliderTools - Bit of useful feature for sliders
Changes the way to get the characters.
https://community.appinventor.mit.edu/t/hm-10-ble-arduino-uno-notify-bluetooth-at-ibeacon-arrhythmia/12621/6
...
void loop(){
if(HM10.available()) {
caracter = HM10.read();
mensaje = mensaje + caracter;
if(caracter == NULL ) {
Serial.println(mensaje);
flotante = 7.101031f * mensaje.toFloat() / 3.303071f;
...
Try NullTerminateString = false
https://community.appinventor.mit.edu/t/hm-10-ble-arduino-uno-notify-bluetooth-at-ibeacon-arrhythmia/12621/3
adding time intervals in the blocks
... note also that for testing, it is best to start with big time intervals so you can see what is going on - when you know it is working as expected, the time intervals can be tweaked shorter.
so please tell me if im wrong, what this code block does is give time in between sending each individual value?
That is true - it means that some of the values in the process will be dropped, but that should not be significant.