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 7
28 #define SINRICPRO_VERSION_REVISION 4
29 #define SINRICPRO_VERSION STR(SINRICPRO_VERSION_MAJOR) "." STR(SINRICPRO_VERSION_MINOR) "." STR(SINRICPRO_VERSION_REVISION)
30 #define SINRICPRO_VERSION_STR "SinricPro (v" SINRICPRO_VERSION ")"
31 
32 // Server Configuration
33 #define SINRICPRO_SERVER_URL "ws.sinric.pro"
34 #define SINRICPRO_SERVER_PORT 80
35 #define SINRICPRO_SERVER_SSL_PORT 443
36 
37 // UDP Configuration
38 #define UDP_MULTICAST_IP IPAddress(224,9,9,9)
39 #define UDP_MULTICAST_PORT 3333
40 
41 // WebSocket Configuration
42 #ifdef DEBUG_WIFI_ISSUE
43  #define WEBSOCKET_PING_INTERVAL 10000
44 #else
45  #define WEBSOCKET_PING_INTERVAL 300000
46 #endif
47 #define WEBSOCKET_PING_TIMEOUT 10000
48 #define WEBSOCKET_RETRY_COUNT 2
49 
50 // LeakyBucket Configuration
51 #define BUCKET_SIZE 10
52 #define DROP_OUT_TIME 60000
53 #define DROP_IN_TIME 1000u
54 
55 #endif