Hi,
I am attempting to modify the central_hr and peripheral_hr code to send data from the central device to the peripheral and have the peripheral device print out what it has received. So far I have modified the heart-rate characteristic so that it will receive an unsigned integer and when I connect to it via the the nRFConnect app I can send it an integer and it will print it out just fine. However, when I attempt to modify the central_hr to send an unsigned integer via bt_gatt_write() or bt_gatt_write_without_response() it doesn't seem to work. The two devices are connecting fine and the central is receiving the mock heart-rate data but as far as I can tell the peripheral is not receiving anything. Am I missing a step? Do I have to do additional setup to get the central to write data to the peripheral characteristic? I am a little stalled out here and I am not sure I understand the central code very well so any help would be appreciated. The modifications to the peripheral work as intended with the nrfConnect app so I assume the issue is in the central but I don't know what that could be.
I will show some of the relevant code below and I am using a 52840 dev kit as the peripheral and a 5340 dev kit as the central.
Where I am calling bt_gatt_write_without_response() (I have hrs.h included in the central code)