-
Notifications
You must be signed in to change notification settings - Fork 0
DS_CAP_MDNS
Denis Stepanov edited this page May 14, 2021
·
4 revisions
This capability adds support for multicast DNS, i.e., possibility to contact controller via its hostname, without relying on intermediate DNS server.
This capability has no user interface; you just need to enable it in MySystem.h
and make sure that your controller connects to network by some means (see network).
- DS_CAP_SYS_NETWORK — network capability
- ESP8266 Arduino Core - mDNS implementation
- DS_CAP_WEBSERVER — if web server is enabled, its "System Information" page will include "mDNS Hostname" line with hostname information.
None.
MySystem.h
:
#define DS_CAP_SYS_NETWORK // Enable network
#define DS_CAP_MDNS // Enable mDNS
#include "System.h" // System global definitions
sketch.ino
:
#include "MySystem.h"
using namespace ds;
void setup() {
System::begin();
}
void loop() {
System::update();
}
(empty sketch, because the functionality is fully covered by System::begin()
and System::update()
functions)
System::begin() |
Required |
System::update() |
Required |
None.
Version 1.0 or later.
None.
- DS_CAP_APP_ID
- DS_CAP_APP_LOG
- DS_CAP_BUTTON
- DS_CAP_MDNS
- DS_CAP_SYS_FS
- DS_CAP_SYS_LED
- DS_CAP_SYS_LOG
- DS_CAP_SYS_LOG_HW
- DS_CAP_SYS_NETWORK
- DS_CAP_SYS_RESET
- DS_CAP_SYS_RTCMEM
- DS_CAP_SYS_TIME
- DS_CAP_SYS_UPTIME
- DS_CAP_TIMERS
- DS_CAP_TIMERS_ABS
- DS_CAP_TIMERS_COUNT_ABS
- DS_CAP_TIMERS_COUNT_TICK
- DS_CAP_TIMERS_SOLAR
- DS_CAP_WEB_TIMERS
- DS_CAP_WEBSERVER
- DS_CAP_WIFIMANAGER