Bad argument to Connect : Operation connect cannot accept the arguments ["BT address"]

Im trying to connect my phone to a nearby device(Wireless Headphone)... but the following error pops up.. I am not able to procure a solution.. I would be obliged if someone helped..

Attachment of my Code and real time screen error

Android version of your test device?

Try this:

Are you sure about that .ElementsFromString assignment?

It forces an (unnecessary?) string conversion.

I am no BLE expert, but I would try just .Elements

Also, I am pretty sure when AI2 asks for an index, it wants a number (1,2,...) so .SelectionIndex might be more reasonable for an index than .Selection.

1 Like