SinricPro Library
SinricProConfig.h
1 /*
2  * Copyright (c) 2019 Sinric. All rights reserved.
3  * Licensed under Creative Commons Attribution-Share Alike (CC BY-SA)
4  *
5  * This file is part of the Sinric Pro (https://github.com/sinricpro/)
6  */
7 
8 #ifndef __SINRICPRO_CONFIG_H__
9 #define __SINRICPRO_CONFIG_H__
10 /*
11  * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12  * !! !!
13  * !! WARNING: DON'T TOUCH ! !!
14  * !! ====================== !!
15  * !! PLEASE DO NOT MODIFY ANY OF THESE SETTINGS HERE !!
16  * !! THIS IS FOR INTERNAL CONFIGURATION ONLY !!
17  * !! SINRIC PRO MIGHT NOT WORK IF YOU MODIFY THIS !!
18  * !! !!
19  * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
20  */
21 
22 #define STR_HELPER(x) #x
23 #define STR(x) STR_HELPER(x)
24 
25 // Version Configuration
26 #define SINRICPRO_VERSION_MAJOR 2
27 #define SINRICPRO_VERSION_MINOR 6
28 #define SINRICPRO_VERSION_REVISION 0
29 #define SINRICPRO_VERSION STR(SINRICPRO_VERSION_MAJOR) "." STR(SINRICPRO_VERSION_MINOR) "." STR(SINRICPRO_VERSION_REVISION)
30 
31 // Server Configuration
32 #define SINRICPRO_SERVER_URL "ws.sinric.pro"
33 #define SINRICPRO_SERVER_PORT 80
34 #define SINRICPRO_SERVER_SSL_PORT 443
35 
36 // UDP Configuration
37 #define UDP_MULTICAST_IP IPAddress(224,9,9,9)
38 #define UDP_MULTICAST_PORT 3333
39 
40 // WebSocket Configuration
41 #define WEBSOCKET_PING_INTERVAL 300000
42 #define WEBSOCKET_PING_TIMEOUT 10000
43 #define WEBSOCKET_RETRY_COUNT 2
44 
45 // LeakyBucket Configuration
46 #define BUCKET_SIZE 10
47 #define DROP_OUT_TIME 60000
48 #define DROP_IN_TIME 1000u
49 
50 #endif