commit - 4d3e8f2435b25161c51e0a23bbe8985d3a0564dd
commit + f8ea604345cfc30195834cc5903baa32e25b76b0
blob - 9171fe536316314c873d6e389f19fb23c264155e
blob + eb88d359aff455ebbdc09e5aa12643167ac9ba59
--- thingsd/examples/etc/thingsd.conf
+++ thingsd/examples/etc/thingsd.conf
# Run 10 processes to greatly improve performance
prefork 10
-# Default global things listening port for client connections
-default port 50000
+# Default listener bind interface
+bind tcp interface "re1"
-# Default bind interface
-bind interface "re1"
+# Default udp bind interface
+bind udp interface "lo0"
# Default maximum number of clients for each thing
max clients 2
-# Maximum subscription requests per client
-max subscriptions 5
-
# Thing reconnect timer in seconds
# this is approximate to the event base timer
# default is 30 seconds
# min is 10 seconds
# max is 600 seconds
-connection retry 60
+connection retry 10
#
# Device Setup
thing "thing1" {
location "/dev/ttyU0" {
baud 9600
- listen on port 50002
+ listen on port 50010
max clients 1
data 8
parity "none"
thing "thing2" {
ipaddr "10.0.0.1" {
connect on port 8080
+ listen on port 50020
max clients 2
persistent 0
password "Mother"
thing "thing3" {
ipaddr "10.0.0.2" {
connect on port 80
- listen on port 51000
- bind interface "lo0"
+ listen on port 50030
+ bind tcp interface "lo0"
password "Father"
}
}
udp "my_listener" {
receive on port 8080
listen on port 51000
+ bing udp interface "re0"
password "Sister"
}
}