Loading...
Searching...
No Matches
STDIO over NimBLE

To enable stdio over nimBLE, add the module stdio_nimble: More...

Detailed Description

To enable stdio over nimBLE, add the module stdio_nimble:

USEMODULE += stdio_nimble
Warning
This feature is experimental!
This feature is experimental as some use-cases, such as examples/twr_aloha, show unexpected behaviour.

Standard input/output backend using NimBLE.

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.
 
#define CONFIG_STDIO_NIMBLE_STDIN_BUFSIZE   1024
 Size of buffer for stdin in bytes.
 
#define CONFIG_STDIO_NIMBLE_STDOUT_BUFSIZE   2048
 Size of buffer for stdout in bytes.
 

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 48 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 57 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 66 of file stdio_nimble.h.