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 9
28
#define SINRICPRO_VERSION_REVISION 1
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
#define SINRICPRO_VERISON_INT SINRICPRO_VERSION_MAJOR * 1000000 + SINRICPRO_VERSION_MINOR * 1000 + SINRICPRO_VERSION_REVISION
32
33
// Server Configuration
34
#ifndef SINRICPRO_NOSSL
35
#define WEBSOCKET_SSL
36
#endif
37
38
#define SINRICPRO_SERVER_URL "ws.sinric.pro"
39
#define SINRICPRO_SERVER_PORT 80
40
#define SINRICPRO_SERVER_SSL_PORT 443
41
42
// UDP Configuration
43
#define UDP_MULTICAST_IP IPAddress(224,9,9,9)
44
#define UDP_MULTICAST_PORT 3333
45
46
// WebSocket Configuration
47
#ifdef DEBUG_WIFI_ISSUE
48
#define WEBSOCKET_PING_INTERVAL 10000
49
#else
50
#define WEBSOCKET_PING_INTERVAL 300000
51
#endif
52
#define WEBSOCKET_PING_TIMEOUT 10000
53
#define WEBSOCKET_RETRY_COUNT 2
54
55
// LeakyBucket Configuration
56
#define BUCKET_SIZE 10
57
#define DROP_OUT_TIME 60000
58
#define DROP_IN_TIME 1000u
59
60
#endif
src
SinricProConfig.h
Generated by
1.9.1