You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
885 B
70 lines
885 B
#include "sdkconfig.h"
|
|
|
|
#include <fs/nvs_storage.hpp>
|
|
#include <network/interface.hpp>
|
|
|
|
extern "C" void app_main (void) {
|
|
fs::nvs_storage::initialize ();
|
|
network::interface::initialize ();
|
|
}
|
|
|
|
#include "sdkconfig.h"
|
|
#include "esp_wifi.h"
|
|
#include "network/interface.hpp"
|
|
|
|
|
|
using namespace network;
|
|
void interface::initialize () {
|
|
tcpip_adapter_init ();
|
|
}
|
|
|
|
// ----------------------------------------
|
|
|
|
namespace A {
|
|
class interface {
|
|
public:
|
|
interface() {
|
|
}
|
|
|
|
~interface() {
|
|
}
|
|
|
|
void foo() {
|
|
}
|
|
};
|
|
}
|
|
|
|
namespace B {
|
|
class interface {
|
|
public:
|
|
interface();
|
|
~interface();
|
|
void foo();
|
|
};
|
|
|
|
inline interface::interface() {
|
|
}
|
|
inline interface::~interface() {
|
|
}
|
|
inline void interface::foo() {
|
|
}
|
|
}
|
|
|
|
namespace C {
|
|
class interface {
|
|
public:
|
|
interface();
|
|
~interface();
|
|
void foo();
|
|
};
|
|
|
|
interface::interface() {
|
|
}
|
|
interface::~interface() {
|
|
}
|
|
void interface::foo() {
|
|
}
|
|
}
|
|
|
|
interface ::external_iterface;
|