2017-11-20 16:54:06 +01:00
|
|
|
|
|
|
|
#ifndef _SB_NETWORK_CONFIG_
|
|
|
|
#define _SB_NETWORK_CONFIG_
|
|
|
|
|
2017-12-15 13:55:09 +01:00
|
|
|
// Generates details debug messages about sending and receiving data packages
|
2018-02-11 14:14:40 +01:00
|
|
|
|
2019-04-17 21:41:37 +02:00
|
|
|
#define _DEBUG
|
2017-11-20 16:54:06 +01:00
|
|
|
|
2017-12-15 13:55:09 +01:00
|
|
|
// All slaves will ping the master every xxx milliseconds. if set to 0, they will not ping the master
|
|
|
|
#define MASTER_CHECK_INTERVAL 0
|
2017-11-20 16:54:06 +01:00
|
|
|
|
|
|
|
#define MAX_CLIENTS 10
|
|
|
|
|
2017-12-15 13:55:09 +01:00
|
|
|
#define CLIENT_TIMEOUT 60000
|
|
|
|
|
2019-04-17 21:41:37 +02:00
|
|
|
#define CONNECT_TIMEOUT 10000
|
|
|
|
|
2018-02-11 14:14:40 +01:00
|
|
|
// Milliseconds to wait for fragmented packages
|
2019-04-17 21:41:37 +02:00
|
|
|
#define FRAGMENT_TIMEOUT 150
|
2017-11-20 16:54:06 +01:00
|
|
|
|
2018-02-11 14:14:40 +01:00
|
|
|
// Milliseconds to wait between two fragment sendings
|
2019-04-17 21:41:37 +02:00
|
|
|
#define FRAGMENT_DELAY 20
|
2017-12-14 23:38:46 +01:00
|
|
|
|
2017-11-20 16:54:06 +01:00
|
|
|
#endif
|