KNX IoT
KNX IoT Point API stack implementation
dns-sd.h
Go to the documentation of this file.
1 /*
2 // Copyright (c) 2022 Cascoda Ltd.
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 */
20 #ifndef DNS_SD_H
21 #define DNS_SD_H
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 #include <stdint.h>
28 #include <stdbool.h>
29 
42 int knx_publish_service(char *serial_no, uint64_t iid, uint32_t ia, bool pm);
43 
50 void knx_service_sleep_period(uint32_t sp);
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 
56 #endif // DNS_SD_H
int knx_publish_service(char *serial_no, uint64_t iid, uint32_t ia, bool pm)
Publish the KNX mDNS service in order to enable DNS-SD discovery.
void knx_service_sleep_period(uint32_t sp)
Set the advertised sleep period within the mDNS service.