1 /* 2 * Copyright (c) 2023 Unionman Technology Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef PRODUCTCONFIG_H 17 #define PRODUCTCONFIG_H 18 19 20 #define VERSION_STR "1.0.2" 21 22 #define HTTP_SERVER_PORT (52000) 23 24 #define MULTICAST_LOCAL_PORT (50012) 25 26 #define MULTICAST_PORT (50002) 27 28 #define MULTICAST_IP_ADDRESS_V4 "224.100.100.100" 29 30 #define MULTICAST_IP_ADDRESS_V6 "ff15::100:100" 31 32 #define OFFLINE_TIMEOUT (3 * 1000) // 毫秒 33 34 #define TCP_SERVER_PORT (MULTICAST_LOCAL_PORT) 35 36 #endif // PRODUCTCONFIG_H 37