That I figured out, but I still can't find out how did they managed to call that length variable or whatever it is, I can't seem to call it. They didn't define it as a variable or anything and it's not an object. How do I do the same in MIT 2 ? As you can see I found the "length" in the text menu but can't seem to find a way to call it.
My App already can scan and connect to my esp32 as long as it's paired and this is why I am trying to adapt the code from that tutorial and add it to my project so I can have a working pair function via the button I created.
I don't exacly get what code from there does the pairing job.
My problem is that I don't know which part of the code from the tutorial I need for pairing only, I don't need anything else from there besides the code that brings me to the pairing menu of the phone when the "Pair" button is pressed.
MAC addresses can be a list so you need to examine the length of the list. You'll find the segment block in Text.
The pink length block is used to check the length of a text value.
This is my own button that I created for the pairing process and I need to take the pairing code from that tutorial and add it into my project, I took what I could but having problems with the said above "call length" and "call segment" things which I don't know how to find the call function for them in MIT 2. And besides from that I don't exacly know which part of the code from the tutorial is for the pairing process but that's okay I'll figure it out but I need to find a way to manage to call length and segment in my code as well until then.
this snippet will not pair the devices, but will open the settings for the user to do the pairing manually
if you want to do that, just use the activity starter with the following settings
You might use this extension which supposedly can pair devices, Now this extension is free to everyone----see the bottom part of the discussion of the extension.