mirror of
https://github.com/esphome/esphome.git
synced 2026-08-24 07:06:20 +00:00
Contract doc: writes without response also report on_write_result
Both backends report the no-response completion (Bluedroid at WRITE_CHAR_EVT, rp2 synthesized or via the can-send path); the neutral write action already relies on it.
This commit is contained in:
@@ -123,8 +123,8 @@ class GattClientListener {
|
||||
// - completions: connect and gatt_disconnect land in on_connection_state,
|
||||
// discover_services in on_service_discovery_done, pair in
|
||||
// on_pairing_result, reads in on_read_result, notify_characteristic in
|
||||
// on_notify_state, characteristic writes with response and descriptor
|
||||
// writes in on_write_result.
|
||||
// on_notify_state, characteristic writes (with and without response) and
|
||||
// descriptor writes in on_write_result.
|
||||
template<typename T>
|
||||
concept BLEGattConnectionContract = requires(T conn, GattClientListener *listener, const uint8_t *data) {
|
||||
conn.set_listener(listener);
|
||||
|
||||
Reference in New Issue
Block a user