Reading Values off of Peripherals/Servers | Cypress Semiconductor
Reading Values off of Peripherals/Servers
I'm working on a project, and having trouble wrapping my head around the APIs in the BLE datasheet. Currently I have a hub device acting as both Peripheral and Central and another device that is just Peripheral. They communicate in pairs, but the hub device can also communicate with other hub devices. To pair those up, I manually put one in Slave/Client/Central, and the other in Master/Server/Peripheral. From there the Slave scans, finds, then connects to Master. From there the Slave needs 2 bytes from the Master, and after it receives them, disconnects, but I don't know which APIs would best be suited for that, since the Server can't CyBle_GattcWriteCharactisticValue. Would I need CyBle_GattcReadCharacteristicValue or CyBle_GattsWriteAttributeValue? Which APIs to which side of the communication would I use specifically?