I’ve been looking around for projects but the projects on the product page scarcely deal with BLE and do not have the functions for the xiao esp32c3 microcontroller (there’s not much online at all I’ll keep looking). I know for a fact though, that the data is transferred to the app as a string.
Why are you using the ReadString method in the StringReceived event? What happens if you just remove the ReadString blocks?
There are two ways to read the data. You register the BLE component for automatic reading of data using the RegisterForString block, which you did in the Connected event, or you use ReadString e.g. in the clock. Your code with ESP seems to use notifications, so just registering string readings should be enough, and ReadString blocks are unlikely to be needed.
It just looks like their default text, sorry for the confusing phrasing.
Essentially, the data is not displayed in the labels, and the labels stay as they are as they have in default. The text for the label for the temp data is tempOutput, and it just stays that when the app runs (even though the device is connected).
I copied them over directly from the code, but it just doesn't seem to work? If I take all the code out that reads the heart rate sensor data, the data for temperature shows up in the label fine, but the two sensor data just can't seem to be displayed together on the app.
Also, thank you Patryk and Abraham for helping so much. It means a lot.
The project you shared is also not working? Are there any errors or just no response? Here I added labels to see the raw data if any. MLEX_vital_reader_3.aia (256.0 KB)
Hi @Patryk, @ABG
I inserted the code that said it worked in that conversation, but the outputs still haven't changed. Should I attempt to create two different screens and connect the bluetooth separately?
Hi all, I think I came across the error.
For some reason, the temperature reading works perfectly fine when I just run the code to set the text label to that, but the heart rate reading doesn't work and comes up with this issue:
Even though both the service and characteristic uuids are ones I copied over from the code, this error occurs, and I was wondering if there's something wrong with the code...
@Patryk_F@ABG Hi all, I think someone helped get the code to work for both sensors, I will send over the code as soon as I get it. Thanks for all the help. In the meantime, I have been trying to send text notifications from the phone with this code, but the app keeps on glitching (as described). Is there any way to include a component that controls the sending of the text message to be a one-time thing? Additionally, is it possible to send a text message automatically without pressing on anything? I know that there is an alternative version 2.65u of the mit app companion that apparently bypasses Google app’s limitations but I can’t seem to find it. Thanks again.
It's not Companion's fault that it blocks text messages without user interaction. It's just android updates. In my opinion, a better solution would be to use the SIM800 module connected to ESP32, instead of sending text messages from the app.