-
Notifications
You must be signed in to change notification settings - Fork 0
Module config
Marvin edited this page May 22, 2013
·
9 revisions
{
"name": "Foobar",
"uuid": "12345678-9abc-def0-1234-56789abcdef0",
"listen":
[
{
"address": "127.0.0.1",
"port": 4221
},
{
"interface": "wlan0",
"port": 4221
}
],
"announce":
[
{
"address": "127.0.0.1",
"port": 4221
},
{
"address": "foo.bar",
"port": 4221
}
],
"multicast":
[
{
"address": "224.0.0.1",
"port": 4221,
"interface": "wlan0"
}
],
"allowedblocks":
{
"amount": 9,
"children":
[
{
"type": "testblock1",
"amount": 3
},
{
"amount": 7
"children":
[
{
"type": "testsubblock1",
"amount": 4
},
{
"type": "testsubblock2",
"amount": 4
},
]
}
]
}
-
name
: The name of the Module -
uuid
: The UUID that should be used by the Module. A random one will be used if none is specified -
listen
: Configures which ports to listen on for incoming connections. Each element consists ofport
and-
address
: an IPv4 or IPv6 address or hostname -
interface
: an interface name. Will listen on all addresses configured on the device - neither
address
norinterface
: listen on all addresses of all interfaces
-
-
announce
: Configures which addresses will be announced via UDP multicast. Each element consists of-
address
: an IPv4 or IPv6 address or hostname -
port
: a port number
-
-
multicast
: Sets the multicast addresses and interfaces that should be used to announce this module. Each element consists of:-
address
: an IPv4 or IPv6 multicast address -
port
: a port number -
interface
: the interface to use
-
-
allowedblocks
: a list of block types that can be run on this module. Each element consists of:-
type
: the type of function block -
amount
: Optional. How many of the given type can be run. If not specified or negative the amount is not limited.
-