BRICKD.CONF(5)
π NAME π
okay so this is the brickd.conf manual page β file formats manual, section 5 energy β and brickd.conf is the configuration file for brickd(8). Thatβs the whole NAME section, bestie. π
π DESCRIPTION π
The brickd.conf file specifies the configuration for the brickd(8) program that routes Tinkerforge Protocol (TFP) messages between Tinkerforge USB devices (Bricks) and sockets; plain TCP/IP sockets and WebSockets are supported. For further information see the brickd(8) manpage.
π¦ FILE FORMAT π¦
The file is line-based, each newline-terminated line represents either a comment or parameter of the form name = value. Leading and trailing whitespace on a line is ignored.
Any line beginning with a hash (#) is ignored. But a hash in the middle of a line is used as-is, therefore it is not possible to put a comment at the end of a parameter. The hash and following text becomes part of the parameter.
careful, bestie: a # in the middle of a line is not a comment starter. It becomes part of the parameter. No sneaky end-of-line comments here. π
Only the first equals sign (=) in a parameter is significant. Whitespace before or after the first equals sign is discarded. Leading and trailing whitespace in a parameter name is ignored. Leading and trailing whitespace in parameter value is discarded. Internal whitespace within a parameter value is used as-is.
The values following the equals sign in parameters are all either strings (no quotes needed) or integers.
β¨ PARAMETERS β¨
π Network Connectivity π
The parameters with listen prefix control how brickd(8) listens for incoming plain TCP/IP, WebSocket and special Mesh Gateway connections.
listen.addressβbrickd(8)binds a plain TCP/IP socket and a WebSocket to this address to listen for incoming plain TCP/IP and WebSocket connections. The address can either be a dotted-decimal IPv4 address or a hexadecimal IPv6 address. It can also be a hostname such aslocalhost. The default value is0.0.0.0.listen.plain_portβ The port number to listen to for incoming plain TCP/IP connections. The default value is4223.listen.websocket_portβ The port number to listen to for incoming WebSocket connections. The default value is0(disabled). To enable WebSocket support a port number different from0has to be configured. The recommended port number is4280. It is also strongly recommend to enable authentication if WebSocket support is enabled.listen.mesh_gateway_portβ The port number to listen to for incoming Mesh Gateway connections from a WIFI Extension 2.0 Mesh. The default value is4240. Use0to disable Mesh Gateway.listen.dual_stackβ If a IPv6 address is given aslisten.addressor the hostname given aslisten.addressgets resolved to a IPv6 address then this option controls if dual-stack mode gets enabled (on) or disabled (off) on the socket bound to that address. The default value isoff.
π Network Authentication π
The Tinkerforge Protocol supports authentication on a per-connection basis. By default authentication is disabled for backward compatibility. If it is enabled then an IP Connection has to prove to brickd(8) that it knows the authentication secret via a handshake mechanism, before it can do any useful communication with Bricks and Bricklets.
authentication.secretβ The authentication secret is an ASCII encoded string with up to 64 characters. An empty secret means that authentication is disabled. If the secret is longer than 64 characters thenbrickd(8)will complain and refuse to start. The default value is an empty string (disabled).
no cap: empty secret = authentication off. Too-long secret = brickd(8) complains and refuses to start. Keep it 64 characters or less, bestie. π
π Logging π
Each log message of brickd(8) has a certain severity level attached to it. The visibility of log messages is controlled by their severity levels.
log.levelβ Log messages with a severity level above or equal to the configured level are included in the log output, all other log messages are excluded. Valid levels areerror,warn,infoanddebug. The default value isinfo. It means that log messages onerror,warnandinfolevel are shown, but messages ondebuglevel are ignored. This can be overridden with the--debugcommand line option ofbrickd(8)that sets the severity level todebug.log.debug_filterβ Iflog.levelis set todebugthen the visibility of debug messages can be controlled by a comma separated list of filter statements (FIXME: Add more details about filter statements). The default value is an empty string (all message are included).
ποΈ FILES ποΈ
/etc/brickd.conf or ~/.brickd/brickd.conf
π BUGS π
Please report all bugs you discover to https://github.com/Tinkerforge/brickd/issues
π AUTHOR π
Matthias Bolte <matthias@tinkerforge.com>
Β©οΈ COPYRIGHT Β©οΈ
Copyright (C) 2012-2018 Matthias Bolte
π LICENSE π
brickd is distributed under the terms of the GNU GPL v2+. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
π SEE ALSO π
For further information see https://www.tinkerforge.com
xoxo π Tinkerforge Β· 2017-10-11 Β· BRICKD.CONF(5) β thatβs the footer energy, bestie π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: brickd 2.4.7-bp160.1.9 Β· GPL-2.0-only
- opensuse-leap 16.0: brickd 2.4.7-bp160.1.9 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms