RE:IOS device act as both central and peripheral
RE:IOS device act as both central and peripheral
- Subject: RE:IOS device act as both central and peripheral
- From: Thirumalrao Surisetty <email@hidden>
- Date: Thu, 23 Apr 2015 19:22:34 +0530
Hi
Working on smartwatch application .Initially my iphone act as a central role and due to some problems it need to make IPhone as both central and peripheral .Initial problem was when i connect to the peripheral device i will send me bb command and in response to that i need to send 42 to command back this is happening and after that next step is i need to send 70 command to watch and in response to that i will get 71 ,here watch is sending back the response as i have observed in watch console logs and in my application i cannot see that .I have raised same question to manufacturer team and they povided me following data
we need to do the following to their iOS app:
1. add a discoverable BLE GATT service which UUID (little endian) is:
0x44, 0x98, 0xFF, 0xD5, 0x02, 0x4F, 0x39, 0x8E, 0xFB, 0x49, 0x6A, 0xC4, 0x4A, 0x51, 0x3C, 0xE2
2. add a discoverable BLE GATT characteristic (writable, indictable and notifiable) inside the service:
0x83, 0x46, 0xF6, 0xEB, 0x31, 0xC1, 0x85, 0x84, 0x93, 0x44, 0x57, 0x03, 0xFC, 0xB8, 0x23, 0x07
3. after receiving BB 03, send 0x42. Then their iOS app should be able to setup a logical connection for receiving data from the watch.
Here i came to know that my device should act as aperipheral and add that service and charactersrtics, i have done that .But how do watch know that i have made iphone as peripheral and take services and characterstics from peripheral.Please provide me the solution
Thanks
Thirumalrao
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden