Data from BLE are read only once

Capture d’écran 2023-07-04 165602
The app crashes


I think because the clock is already running before connecting to the ble module. Ok I think the RegisterForString method should work, so remove the Clock and add back the RegisterForString block in the Connected event. Data should be read as before. We just need to think about why the tags are messing up reading the data.

You don't think we should add back the List? in order to see the values one time?

first we need to see the raw data. Make only one label.
5407291c865fab3774e9ca08cf3141927319a6e0

On the app, I don't receive anything. I have tried with both( The commented line and the other one,changed my code to receive only Calc(Volume)), Nothing works.


So it turns out you have to use the earlier method with the ReadStrings block in the timer. This time disable the clock in its properties, then enable it in blocks in the Connected event.
It seems that the arduino does not support blah notifications. It could probably be programmed to use RegisterForString, but I don't know how.

But I see in the serial monitor that your arduino is sending zero values. To find out if the app is actually not receiving data, your data should be different from zero.

I try with with code As well.


For your suggestion, Like this?

Don't make any changes to the arduino code until you get the app up and running.


Not working at all, i can't click on the bluetooth.


Good Point, I will change it right now and let you know.



The display Is odd, i get a value and a new one just after it... the old one doesn't disapear.Like a continuous list.

You left the doctor's office with his stethoscope still stuck to you.

hahahhaha, can you please be more clear, i should remove join?

The JOIN is there for diagnostic purposes.

It can be removed, after you are sure the app is working right.

I am not sure you are ready to leave the doctor's office yet, though.

Did you notice in the data stream how each list of string values you receive looks like

["00.0
"]

?

Each 00.0 is followed by a \n, which would appear okay in a Label but would poison any math blocks that you tried to feed with that value.

That is a symptom of being over-generous with \n emission in the BLE transmitter.
The \n might come from a println or from a \n in the data stream.

Do you plan on doing any comparisons with that value, or graphing it over time?

No for now i just want a live display So i remove ''the join'' block. Btw Thank you so much for explaining things to me.


Something like this didn't work, if you have an idea please help

The answer is in the log of all the data you received.

Each stringValues you received came in as a list of just one item, and that item was 00.0\n.

Look upstream to see why you are getting short-changed.

I am so sorry but i really didn't understand. Please can you be more clear, i would really appreciate it.