summaryrefslogtreecommitdiff
path: root/docs/esp8266/tutorial/network_basics.rst
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-11-29 12:48:38 +1100
committerDamien George <damien.p.george@gmail.com>2019-12-04 23:23:07 +1100
commit7aeafe2ae9f16af74d22604b3090641a664b2da2 (patch)
tree35b96bd1aa185aa8563cbdcb2c94e605c9d2c872 /docs/esp8266/tutorial/network_basics.rst
parent9a849cc7caee63560ecd2455a29615a44e2c809f (diff)
extmod/modbluetooth: Add optional 4th arg to gattc_write for write mode.
This allows the user to explicitly select the behaviour of the write to the remote peripheral. This is needed for peripherals that have characteristics with WRITE_NO_RESPONSE set (instead of normal WRITE). The function's signature is now: BLE.gattc_write(conn_handle, value_handle, data, mode=0) mode=0 means write without response, while mode=1 means write with response. The latter was the original behaviour so this commit is a change in behaviour of this method, and one should specify 1 as the 4th argument to get back the old behaviour. In the future there could be more modes supported, such as long writes.
Diffstat (limited to 'docs/esp8266/tutorial/network_basics.rst')
0 files changed, 0 insertions, 0 deletions