supla-device
Loading...
Searching...
No Matches
netif_lan.h
1// SPDX-FileCopyrightText: AC SOFTWARE SP. Z O.O.
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#ifndef SRC_SUPLA_NETWORK_NETIF_LAN_H_
5#define SRC_SUPLA_NETWORK_NETIF_LAN_H_
6
7#include "network.h"
8
9namespace Supla {
10class LAN : public Supla::Network {
11 public:
12 LAN();
13 const char* getIntfName() const override;
14 uint32_t getIP() override;
15 bool isReady() override;
16 void onLoadConfig() override;
17 void fillStateData(TDSC_ChannelState *channelState) override;
18 void setIpReady(bool ready);
19 void setIpv4Addr(uint32_t ip);
20
21 protected:
22 bool isIpReady = false;
23 uint32_t ipv4 = 0;
24};
25
26}; // namespace Supla
27
28
29#endif // SRC_SUPLA_NETWORK_NETIF_LAN_H_
Definition netif_lan.h:10
Definition network.h:21
Definition proto.h:2705