SinricPro Library
Loading...
Searching...
No Matches
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#pragma once
9/*
10 * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
11 * !! !!
12 * !! WARNING: DON'T TOUCH ! !!
13 * !! ====================== !!
14 * !! PLEASE DO NOT MODIFY ANY OF THESE SETTINGS HERE !!
15 * !! THIS IS FOR INTERNAL CONFIGURATION ONLY !!
16 * !! SINRIC PRO MIGHT NOT WORK IF YOU MODIFY THIS !!
17 * !! !!
18 * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
19 */
20
21#pragma once
22
23// Server Configuration
24#ifndef SINRICPRO_NOSSL
25#define WEBSOCKET_SSL
26#endif
27
28#ifndef SINRICPRO_SERVER_URL
29#define SINRICPRO_SERVER_URL "ws.sinric.pro"
30#endif
31
32#ifndef SINRICPRO_SERVER_PORT
33#define SINRICPRO_SERVER_PORT 80
34#endif
35
36#ifndef SINRICPRO_SERVER_SSL_PORT
37#define SINRICPRO_SERVER_SSL_PORT 443
38#endif
39
40#ifndef SINRICPRO_CAMERA_URL
41#define SINRICPRO_CAMERA_URL "camera.sinric.pro"
42#endif
43
44#ifndef SINRICPRO_CAMERA_API_SNAPSHOT_PATH
45#define SINRICPRO_CAMERA_API_SNAPSHOT_PATH "/snapshot"
46#endif
47
48#ifndef SINRICPRO_CAMERA_API_MOTION_PATH
49#define SINRICPRO_CAMERA_API_MOTION_PATH "/motion-capture"
50#endif
51
52// UDP Configuration
53#ifndef UDP_MUTLICAST_IP
54#define UDP_MULTICAST_IP IPAddress(224,9,9,9)
55#endif
56
57#ifndef UDP_MULTICAST_PORT
58#define UDP_MULTICAST_PORT 3333
59#endif
60
61// WebSocket Configuration
62#ifdef DEBUG_WIFI_ISSUE
63 #define WEBSOCKET_PING_INTERVAL 10000
64#else
65 #define WEBSOCKET_PING_INTERVAL 300000
66#endif
67#define WEBSOCKET_PING_TIMEOUT 10000
68#define WEBSOCKET_RETRY_COUNT 2
69
70// EventLimiter Configuration
71#ifndef EVENT_LIMIT_STATE
72#define EVENT_LIMIT_STATE 1000
73#endif
74
75#ifndef EVENT_LIMIT_SENSOR_STATE
76#define EVENT_LIMIT_SENSOR_STATE EVENT_LIMIT_STATE
77#endif
78
79#ifndef EVENT_LIMIT_SENSOR_VALUE
80#define EVENT_LIMIT_SENSOR_VALUE 60000
81#endif
82
83// For HTTP API requests
84#ifndef TCP_CONNECTION_TIMEOUT_VALUE
85#define TCP_CONNECTION_TIMEOUT_VALUE 5000
86#endif
87
88#ifndef HTTP_TIMEOUT_VALUE
89#define HTTP_TIMEOUT_VALUE 10000
90#endif