Re: BLE central device as GATT server
Re: BLE central device as GATT server
- Subject: Re: BLE central device as GATT server
- From: András Kövi <email@hidden>
- Date: Mon, 11 Nov 2013 16:00:26 +0100
Even thought the specification may allow you to create a GATT server on the central side (as I understood it from the specifiaction), the iOS Core Bluetooth does not provide this functionality. The DB is tied to the CBPeripheraManager which is the peripheral role. At the same time "
The nRF8001 is a pure BLE Peripheral device, and it can not be used as a Central." (
https://devzone.nordicsemi.com/index.php/can-the-nrf8001-be-used-as-a-central) So I suppose the nRF8001 cannot scan for devices or start a connection. As a consequence, it is not able to connect to the GATT server implemented by the CBPeripheralManager.
So what you can do:
- the mRF8001 must advertise
- the iOS device must scan for the nRF8001
- the iOS device must connect the nRF8001 and discover its services.
At this point it's up to you how you implement the communication. It is possible to have a single service with a single characteristic on the nRF8001 side and implement a higher level protocol that implements a database in a GATT serverish way. This is not preferred for several reasons (this is not the usual way of doing things and you lose most of the optimizations provided by the underlying stacks) but it's your choice.
Regards,
Andras
_______________________________________________
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