I want to develop an Android application which act as a beacon and advertise some data and have services and characteristics to read and write some data. Other devices should be able to scan the advertisement data of my phone and can connect to my gatt, discover my services and can read and write to it's characteristics.
I already have some information about BLE scanning advertisement, reading n writing to characteristics but I want to create my own BLE service where other BLE devices can read and write data.
How to create services. How to create characteristics. How to create callbacks from where I can get that some other ble device connected with me and read or written some data.
Im unable to find a solid guide for this requirement, also tell me if it is not possible and what hacks can I use to make it possible.