[FL-1922] BLE buffer overflow (#789)
* rpc: increase RPC buffer size. Add get available buffer size API * bt: add flow control characteristic to serial service * ble: change updating flow control characteristic logic * rpc: add buffer is empty callback * bt: add notification about empty RPC buffer * ble: add more debug info * serial_service: add mutex guarding available buffer size * ble: remove debug logs in serial service
This commit is contained in:
		| @@ -59,8 +59,12 @@ void furi_hal_bt_stop_advertising() { | ||||
|     } | ||||
| } | ||||
|  | ||||
| void furi_hal_bt_set_data_event_callbacks(SerialSvcDataReceivedCallback on_received_cb, SerialSvcDataSentCallback on_sent_cb, void* context) { | ||||
|     serial_svc_set_callbacks(on_received_cb, on_sent_cb, context); | ||||
| void furi_hal_bt_set_data_event_callbacks(uint16_t buff_size, SerialSvcDataReceivedCallback on_received_cb, SerialSvcDataSentCallback on_sent_cb, void* context) { | ||||
|     serial_svc_set_callbacks(buff_size, on_received_cb, on_sent_cb, context); | ||||
| } | ||||
|  | ||||
| void furi_hal_bt_notify_buffer_is_empty() { | ||||
|     serial_svc_notify_buffer_is_empty(); | ||||
| } | ||||
|  | ||||
| bool furi_hal_bt_tx(uint8_t* data, uint16_t size) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user