Write requests in code

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

How do you send write requests to peripherals in code? 

0 Likes
1 Solution
Anonymous
Not applicable

Assuming that you are writing code for a GAP Central and GATT Client device, use the API CyBle_GattcWriteCharacteristicValue() to send a write request to peripheral with whom you are connected. 

   

 

   

Refer the project at following location to implement such an application:

   

https://github.com/cypresssemiconductorco/PSoC-4-BLE/tree/master/100_Projects_in_100_Days/Day006_Cen... 

View solution in original post

0 Likes
4 Replies
Anonymous
Not applicable

Assuming that you are writing code for a GAP Central and GATT Client device, use the API CyBle_GattcWriteCharacteristicValue() to send a write request to peripheral with whom you are connected. 

   

 

   

Refer the project at following location to implement such an application:

   

https://github.com/cypresssemiconductorco/PSoC-4-BLE/tree/master/100_Projects_in_100_Days/Day006_Cen... 

0 Likes
Anonymous
Not applicable

Thank you

0 Likes
Anonymous
Not applicable

Another question: how can this be used to write to multiple peripherals simultaneously?

0 Likes
Anonymous
Not applicable

To write to multiple peripherals simultaneously, you need to maintain multiple connections simultaneously with these peripherals. Multiple connections is not supported by the device.

   

Rather, you can use a star network to connect -> send data -> disconnect with one device and then continue it to others. Refer the time multiplexed Central project at following location:

   

https://github.com/cypresssemiconductorco/PSoC-4-BLE/tree/master/100_Projects_in_100_Days/Day030_Tim...