Tool/software: Code Composer Studio
My system is the following:
(1) --- (2) --- (3)
1) Peripheral with one service(0xFFE0) and one characteristic (0xFFE1, notify and write) (I can not change anything in this device)
2) CC2640 launchpad (I can program it)
3) Mobile iOS application (I can program it)
The app needs to write/get notifications from the characteristic 0xFFE1 of the device (1). Thus, what would be the right approach to start with?
I've come up with two options for doing it, but I dont know if those are the best/easier ways of doing.
* the device (2) will have a simple_central, and connect to (1) and (3), the mobile application will behave as a peripheral and the event of writing into (0xFFE1(1)) will be through (3) notifying the central (2) and the central writing to (0xFFE1(1)).
* Using (2) with a multi_role example and use the mobile app (3) as a central, writing to (2) and (2) writing to (1) -> (1 [peripheral]) ----- (2 [central/peripheral]) ----- (3 [central])
What is the best way of implementing such system with (2) cc2640 launchpad?