Initial commit: add stepper controller firmware
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <ESP8266WiFi.h>
|
||||
#include "config/ConfigManager.h"
|
||||
|
||||
class NetworkManager {
|
||||
public:
|
||||
bool begin(const WifiConfig& config, const String& hostname);
|
||||
void update();
|
||||
void startAccessPoint(const WifiConfig& config, const String& hostname);
|
||||
bool isAccessPoint() const;
|
||||
bool isConnected() const;
|
||||
String modeName() const;
|
||||
String ipAddress() const;
|
||||
|
||||
private:
|
||||
bool accessPoint_ = false;
|
||||
unsigned long lastReconnectAttempt_ = 0;
|
||||
};
|
||||
Reference in New Issue
Block a user