The outer if/then on each of these makes no sense, comparing incoming serviceUUID against itself.
You would think you would want to compare the incoming serviceUUID against one of the three global UUIDs you have.
Aside from getting those serviceUUID checks right, you have the problem that your submissions of Google Form updates are being driven rapidly by the incoming BLE data stream, with no regard for whether or not the Google Form requests finished.
When data comes in faster than you can write it out, you need a place where it can pile up before being sent out, typically a list, fed at one end and depleted at the other, with monitoring of the length of list on your display to warn you of pile ups.
You may have to switch from that Google Form to the Spreadsheet component to do your updates. That component has feedback events for updates.
Given that your app is working now, deleting those blocks would be premature.
The deletion recommendation was in case you had an error cascade, which has been disproven.
You shouldn't really use the Companion when testing BLE. Compile an APK and install it. However, first of all fix all of your unconnected Blocks (see the 'Show Warnings' bottom left of Blocks work area) and fix your ErrorOccurred Block to:
Report all values and
Set the values in a Label that you can Screenshot:
Bear in mind that Screen1 is the 'King' of the Screens.
Screen HOME: Button Start will create an additional Screen1 !
Just do this:
Similar issue in the History Screen.
I note that you have no BLE permissions requested. What version of Android is the App on? What is the Bluetooth version number of your Smartphone? What is the Make and Model of your microcontroller? Seeed XIAO ??????
Has this file been compressed? I cannot load it to study the code.
Hi, I'm back sorry. I can't delete the data in the database as I want. Do I have to pay for the Google Sheets API service? I want to delete all data when clicking "reset"
Once you start using the AI2 Spreadsheet component to update sheets, you need to build and include a .json credentials file in the Media folder and in the Spreadsheet component attributes.
yeah, but I have to use a Google developer account, isn't it possible if I use a regular Google account and spreadsheets? Can you give me an example of what I should do. I don't have Google Developer account