KNX IoT
KNX IoT Point API stack implementation
dns-sd.h File Reference

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...
 

Detailed Description

DNS SD platform abstraction.

Definition in file dns-sd.h.

Function Documentation

◆ knx_publish_service()

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.

Parameters
serial_noKNX serial number. The advertised service will be "${serial_no}._knx._udp"
iidKNX Installation ID. Set to 0 if the device has not been commissioned yet
iaKNX Individual Address. Set to 0 if the device has not been commissioned yet
pmTrue if the device is in Programming Mode, false otherwise.
Returns
int 0 on success, -1 on error.

◆ knx_service_sleep_period()

void knx_service_sleep_period ( uint32_t  sp)

Set the advertised sleep period within the mDNS service.

Parameters
spThe period, in milliseconds. A value of 0 removes the advertisement, signalling that the device is wakeful.