ble
ble copied to clipboard
we may want to introduce GattServer::addCharacteristic()
We currently only have GattServer::addService(), which requires us to collect the characteristics into an array before passing it into the service constructor. This forces an ugly pattern for construction. A better method would be:
GattService s(UUID,...); ble.gattServer().addService(s); GattCharacteristic c1(UUID,...); ble.gattServer().addCharacteristic(c1);
or even better: ble.gattServer() << s << c1 << ... ;
ARM Internal Ref: IOTSFW-1034