-
-
Notifications
You must be signed in to change notification settings - Fork 283

Description
It would be great if there was a class which provides a GATT client API. Some profiles have the GAP Peripheral as the GATT Client (e.g. the HTTP Proxy Service) so that once a connection has been accepted by the peripheral it then acts as GATT client and sends ATT PDUs over the connection to the GATT server at the other end which was previously the GAP Central device.
Without this, it's not possible to use Arduino 101 in IoT scenarios where the peripheral formulates and instructs a gateway device to execute HTTP requests on its behalf... the HTTP Proxy Service is a Bluetooth SIG standard designed for this purpose. It's not the only time you might want a GAP Peripheral to be the GATT Client but it's a key example. GATT and GAP roles are not coupled in any way.
The master branch of the original arduino-BLEPeripheral does seem to have this capability (not verified).
See
sandeepmistry/arduino-BLEPeripheral#73
and
https://github.com/sandeepmistry/arduino-BLEPeripheral/tree/master/examples/remote_test