I have a project where one device will be both a peripheral and a central. In the central role the device will connect to a sensor. It will act based on the sensor data. In addition it is a requirement that all data be further transmitted to a third device so that system behavior can be recorded and later analyzed.
The sensor device will contain BAS, DIS plus a 3rd custom data service.
The actuator-repeater device will contain its own BAS, DIS plus it must also provide the sensor device's BAS and DIS.
Is there any easy way to include the BAS and DIS of the sensor device hierarchically into a custom service? Is there a better way to do this?
As an alternative I'm considering either:
1) copy BAS/DIS servers and modify to include a custom service UUID. otherwise identical to standard BAS/DIS.
2) include BAS DIS characteristics into a single combined service. this seems like more work.
do you have any recommendations on best approach?