Hi,
To build the context: I have two peripherals, Sensor 1 and Sensor 2. Sensor 1 has been running off of a NUS service to transmit data. Sensor 2 has been running off of a Custom service to transmit and received data. The data from Sensor 1 needs to pass through a relay nRF52 to Sensor 2.
I've been trying to utilize the the shell of the relay example to receive data from one peripheral (sensor1) and send that data to another peripheral (sensor 2) with another new service (that contains both the NUS service and the Custom service's characteristics (2 TX and 1 RX)). I have been able to view all data coming to the relay, but I haven't been able to figure out how to take the data received and send back out on the same service to the other characteristic (i.e. Sensor 1 -> Sensor 2).
It seems like I cannot update my characteristic conn_handle properly to be able to send back out to the other peripheral. Is there a way to do this? Or is it very difficult with the collective characteristics all combined into one service? Should I have two separate Services running on the relay nRF and pass data between the two Services? If so, how would this transfer between Services work?
Thanks!