6#include <ArduinoJson.h>
10#include <net/ethernet.h>
11#include <net/settings.h>
12#include <utils/logging.h>
14#include "protocol/jsonl_server.h"
15#include "web/server.h"
17namespace qn = qindesign::network;
19FLASHMEM IPAddress net::EthernetClass::localIP()
const {
return qn::Ethernet.localIP(); }
21FLASHMEM IPAddress net::EthernetClass::broadcastIP()
const {
return qn::Ethernet.broadcastIP(); }
23FLASHMEM IPAddress net::EthernetClass::gatewayIP()
const {
return qn::Ethernet.gatewayIP(); }
25FLASHMEM
bool net::EthernetClass::isDHCPEnabled()
const {
return qn::Ethernet.isDHCPEnabled(); }
27FLASHMEM
bool net::EthernetClass::isDHCPActive()
const {
return qn::Ethernet.isDHCPActive(); }
29FLASHMEM
bool net::EthernetClass::linkState()
const {
return qn::Ethernet.linkState(); }
31FLASHMEM
bool net::EthernetClass::linkIsFullDuplex()
const {
return qn::Ethernet.linkIsFullDuplex(); }
33FLASHMEM
bool net::EthernetClass::linkIsCrossover()
const {
return qn::Ethernet.linkIsCrossover(); }
35FLASHMEM
bool net::EthernetClass::interfaceStatus()
const {
return qn::Ethernet.interfaceStatus(); }
37FLASHMEM
void net::EthernetClass::setDNSServerIP(
const IPAddress &dnsServerIP)
const {
38 return qn::Ethernet.setDnsServerIP(dnsServerIP);
41FLASHMEM
bool net::EthernetClass::begin(
const IPAddress &ip,
const IPAddress &mask,
const IPAddress &gateway) {
42 return qn::Ethernet.begin(ip, mask, gateway);
45FLASHMEM
bool net::EthernetClass::begin() {
return qn::Ethernet.begin(); }
47FLASHMEM
bool net::EthernetClass::waitForLocalIP(
uint32_t timeout)
const {
48 return qn::Ethernet.waitForLocalIP(timeout);
51FLASHMEM
void net::EthernetClass::setHostname(
const char *hostname) {
52 return qn::Ethernet.setHostname(hostname);
55FLASHMEM
void net::EthernetClass::setMACAddress(
const uint8_t mac[6]) {
56 return qn::Ethernet.setMACAddress(mac);
59FLASHMEM
int net::EthernetClass::linkSpeed()
const {
return qn::Ethernet.linkSpeed(); }
61FLASHMEM
bool net::MDNSClass::begin(
const char *hostname) {
return qn::MDNS.begin(hostname); }
63FLASHMEM
bool net::MDNSClass::addService(
const char *type,
const char *protocol, uint16_t port) {
64 return qn::MDNS.addService(type, protocol, port);