Hi Everyone,
I am trying to create a central nrf to see the retrieved image chunk files from the image transfer service. I was looking at the Zephyr example (peripheral_hr_coded) and it does the same thing I asked for. I changed the UUIDs accordingly and I can find the advertisement and it successfully connects. But I am stuck where I subscribe to the server. There is a client object and I am a little bit confused about how to implement my client for image transfer service. Is there any way that you guys can help?
The change part will be in this code. (I believe)
Thank you,
Bsarica
err = bt_hrs_client_handles_assign(dm, &hrs_c); if (err) { printk("Could not init HRS client object (err %d)\n", err); return; } err = bt_hrs_client_measurement_subscribe(&hrs_c, notify_func); if (err && err != -EALREADY) { printk("Subscribe failed (err %d)\n", err); } else { printk("[SUBSCRIBED]\n"); } err = bt_gatt_dm_data_release(dm); if (err) { printk("Could not release the discovery data (err %d)\n", err); }