Not working: BLE Connect To Device With Service And Name

Long story short, post the AIA.

Please reread the entire thread. No longer requesting scan permission nor scanning.

PropBalancerSweep.aia (213.9 KB)
Here it is.

Looks like I'm wrong.
This works:

EDIT: This does NOT work:


Does not trigger .PermissionGranted (BLE status label text remains at "Asking for connect permission").

Timing issue?

How do I introduce a delay or otherwise know when ready to call AttemptConnect?

EDIT EDIT: Cumbersome to add timer delay. I wish there were a Screen.InitializeDone event.

Well, this works:


So it must be a timing issue? Or somehow event sequencing?
EDIT: Even works with TimerInterval=1.

I'm using Clock1 in DateTime stamping my log file entries.
Will the above prevent that?

First of all, you are using a very old (outdated) version of the BLE extension:

The current version is 20240822: MIT App Inventor Extensions.

Thank you. I'll keep that in mind if the following should ever stop working for me:

EDIT: And to answer my own question: using the Clock1 timer does not adversely affect using Clock1 to DateTime stamp my log file entries.

Obviously a complete waste of time. :upside_down_face:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.