summaryrefslogtreecommitdiff
path: root/extmod/modbluetooth.c
diff options
context:
space:
mode:
authorThomas Friebel <yaron.de@gmail.com>2020-01-01 21:43:23 +0100
committerDamien George <damien.p.george@gmail.com>2020-02-18 13:37:50 +1100
commitf4726735cf9607c4d77edf83f81a11a0e2ab5c98 (patch)
treeba982f33ca85746ac5e7847992820c54979152cf /extmod/modbluetooth.c
parent3bd2ae1a36cb92e674e204a2fc5f6884eae1f7ef (diff)
extmod/modbluetooth: Implement config getter for BLE rxbuf size.
Knowing the buffer size can be important, to ensure that valid data will be received.
Diffstat (limited to 'extmod/modbluetooth.c')
-rw-r--r--extmod/modbluetooth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/extmod/modbluetooth.c b/extmod/modbluetooth.c
index ef6bdff17..af0289a0a 100644
--- a/extmod/modbluetooth.c
+++ b/extmod/modbluetooth.c
@@ -293,6 +293,8 @@ STATIC mp_obj_t bluetooth_ble_config(size_t n_args, const mp_obj_t *args, mp_map
mp_bluetooth_get_device_addr(addr);
return mp_obj_new_bytes(addr, MP_ARRAY_SIZE(addr));
}
+ case MP_QSTR_rxbuf:
+ return mp_obj_new_int(self->ringbuf.size);
default:
mp_raise_ValueError("unknown config param");
}