KNX IoT
KNX IoT Point API stack implementation
|
DNS SD platform abstraction. More...
#include <stdint.h>
#include <stdbool.h>
Go to the source code of this file.
Functions | |
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. More... | |
void | knx_service_sleep_period (uint32_t sp) |
Set the advertised sleep period within the mDNS service. More... | |
DNS SD platform abstraction.
Definition in file 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.
serial_no | KNX serial number. The advertised service will be "${serial_no}._knx._udp" |
iid | KNX Installation ID. Set to 0 if the device has not been commissioned yet |
ia | KNX Individual Address. Set to 0 if the device has not been commissioned yet |
pm | True if the device is in Programming Mode, false otherwise. |
void knx_service_sleep_period | ( | uint32_t | sp | ) |
Set the advertised sleep period within the mDNS service.
sp | The period, in milliseconds. A value of 0 removes the advertisement, signalling that the device is wakeful. |