STDIO over NimBLE

Standard input/output backend using NimBLE. More...

Detailed Description

Standard input/output backend using NimBLE.

Warning
This feature is experimental!
This feature is experimental as some use-cases, such as examples/twr_aloha, show unexpected behaviour.
Note
'stdio_read' blocks until at least one character was read.
'stdio_write' is considered non-blocking even though it uses a mutex to protect the write buffer since only 'stdio_write' uses this mutex. Characters will be written in FIFO mode. Characters that do not fit in the buffer will be dropped.

Files

file  stdio_nimble.h
 

Macros

#define CONFIG_STDIO_NIMBLE_CLEAR_BUFFER_ON_CONNECT   1
 Whether to clear the buffers when establishing a new connection or not. More...
 
#define CONFIG_STDIO_NIMBLE_STDIN_BUFSIZE   1024
 Size of buffer for stdin in bytes. More...
 
#define CONFIG_STDIO_NIMBLE_STDOUT_BUFSIZE   2048
 Size of buffer for stdout in bytes. More...
 

Macro Definition Documentation

◆ CONFIG_STDIO_NIMBLE_CLEAR_BUFFER_ON_CONNECT

#define CONFIG_STDIO_NIMBLE_CLEAR_BUFFER_ON_CONNECT   1

Whether to clear the buffers when establishing a new connection or not.

Defaults to true.

Definition at line 44 of file stdio_nimble.h.

◆ CONFIG_STDIO_NIMBLE_STDIN_BUFSIZE

#define CONFIG_STDIO_NIMBLE_STDIN_BUFSIZE   1024

Size of buffer for stdin in bytes.

Note
Must be a power of two!

Definition at line 53 of file stdio_nimble.h.

◆ CONFIG_STDIO_NIMBLE_STDOUT_BUFSIZE

#define CONFIG_STDIO_NIMBLE_STDOUT_BUFSIZE   2048

Size of buffer for stdout in bytes.

Note
Must be a power of two!

Definition at line 62 of file stdio_nimble.h.