Write response for GATT WriteValue() method

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello, 
we are currently implementing communication between two BLE devices. We are sending chunks of data so we need to know when the other device is ready for the next chunks.

We have impemented the writing of the data with DBUS API. It looks like this:

message_var = g_variant_new_fixed_array(G_VARIANT_TYPE_BYTE, data, length, sizeof(char));
g_dbus_proxy_call_sync(write_characteristic, "WriteValue”, g_variant_new_tuple(&message_var, 1), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error);

The write succeeds, the other device receives the data. However, it is not clear for us how to detect that the other device actually read the data(Write response).

So the first question is: How do we detect the GattCharacteristic1.WriteValue() response?


This is the blocking issue for us currently but I have some other questions about the problems that I image could arise in the future:

How do we send a notification about a successful read on a characteristic value? (the writing of the chunks goes both ways)
Do we get a notification of some sort when a Device goes out of range?

Thanks,
Tõnis


--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux