Thank you very much for such a comprehensive explanation, but I need to work with one of my devices. This is the bluetooth module HC-08, that is connected to my microcontroller. I know its name, its address, I understand how among all the devices to find him and connect to it using the library BLE2. I used the application that gives the manufacturer of this module (it is attached in post # 1), and it works great on any device with support for Bluetooth from version 4.0. I do not understand why one tablet does not see this device through an example for BLE2. Just do not see it and everything. At the same time, another tablet (which is practically the same) sees it and connects to it. I can read the data (listed in post # 8), but I do not understand what it is and how to work with it. I wanted to realize the transmission and reception of data from an android device as with a library of classic bluetooth, where everything was just to send data, I just turned to AStream.Write, and the resulting data fell into AStream_NewData. But I can not draw any analogy with BLE2. Can anyone explain how to do this simply and clearly? Any example can, I will be glad to any information!!
Sorry for my bad english.