Tc Huang,
What can I say? I never had a problem, my main problem is that I do not succeed in showing
you how to solve your problem.... :-(
I explained why you needed to press the lispicker twice and (together with Taifun) why the delay you still had in your .aia is
really bad.
So, here is a little app, which just can connect and disconnect and which uses a clock instead of a delay.
It seems as if there is only one button in it, because the ListPicker is invisible and automatically opened. The Connect and Disconnect buttons are alternatively visible.
Below you can see the blocks. You can copy the blocks in your app via the backpack if you wish.
Then there is the question about the UUID's and how to find or set them. I think you misunderstood the purpose of my app. It is there for educational purposes and if you want to start an app for a new BLE device, to find out what device address it has, what services and characteristics it offers and to allow basic communication with the device.
Once you have found these UUID's, you should modify your code to just have
fixed, hard coded UUID's in your app, because the user of your app should never have to deal with these.
Please study the code and I hope that this clarifies things for you. Cheers, Ghica.
