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// Server Configuration
22#ifndef SINRICPRO_NOSSL
23#define WEBSOCKET_SSL
24#endif
25
26#ifndef SINRICPRO_SERVER_URL
27#define SINRICPRO_SERVER_URL "ws.sinric.pro"
28#endif
29
30#ifndef SINRICPRO_SERVER_PORT
31#define SINRICPRO_SERVER_PORT 80
32#endif
33
34#ifndef SINRICPRO_SERVER_SSL_PORT
35#define SINRICPRO_SERVER_SSL_PORT 443
36#endif
37
38#ifndef SINRICPRO_CAMERA_URL
39#define SINRICPRO_CAMERA_URL "camera.sinric.pro"
40#endif
41
42#ifndef SINRICPRO_CAMERA_API_SNAPSHOT_PATH
43#define SINRICPRO_CAMERA_API_SNAPSHOT_PATH "/snapshot"
44#endif
45
46#ifndef SINRICPRO_CAMERA_API_MOTION_PATH
47#define SINRICPRO_CAMERA_API_MOTION_PATH "/motion-capture"
48#endif
49
50// UDP Configuration
51#ifndef UDP_MUTLICAST_IP
52#define UDP_MULTICAST_IP IPAddress(224,9,9,9)
53#endif
54
55#ifndef UDP_MULTICAST_PORT
56#define UDP_MULTICAST_PORT 3333
57#endif
58
59#if !defined(SINRICPRO_NO_LOCAL_CONTROL) && !defined(SINRICPRO_NOMDNS)
60 #define SINRICPRO_MDNS_ENABLED
61#endif
62
63// WebSocket Configuration
64#ifdef DEBUG_WIFI_ISSUE
65 #define WEBSOCKET_PING_INTERVAL 10000
66#else
67 #define WEBSOCKET_PING_INTERVAL 300000
68#endif
69#define WEBSOCKET_PING_TIMEOUT 10000
70#define WEBSOCKET_RETRY_COUNT 2
71
72// EventLimiter Configuration
73#ifndef EVENT_LIMIT_STATE
74#define EVENT_LIMIT_STATE 1000
75#endif
76
77#ifndef EVENT_LIMIT_SENSOR_STATE
78#define EVENT_LIMIT_SENSOR_STATE EVENT_LIMIT_STATE
79#endif
80
81#ifndef EVENT_LIMIT_SENSOR_VALUE
82#define EVENT_LIMIT_SENSOR_VALUE 60000
83#endif
84
85// For HTTP API requests
86#ifndef TCP_CONNECTION_TIMEOUT_VALUE
87#define TCP_CONNECTION_TIMEOUT_VALUE 5000
88#endif
89
90#ifndef HTTP_TIMEOUT_VALUE
91#define HTTP_TIMEOUT_VALUE 10000
92#endif