1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-25 05:31:24 +01:00
CommandStation-EX/WifiESP32.h

42 lines
1.1 KiB
C
Raw Normal View History

2021-09-21 09:23:52 +02:00
/*
* © 2021 Harald Barth
* © 2023 Nathan Kellenicki
2021-10-01 09:09:30 +02:00
*
2021-09-21 09:23:52 +02:00
* This file is part of CommandStation-EX
*
* This is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* It is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with CommandStation. If not, see <https://www.gnu.org/licenses/>.
*/
2021-09-25 23:18:10 +02:00
2021-10-05 10:39:08 +02:00
#if defined(ARDUINO_ARCH_ESP32)
#ifndef WifiESP32_h
#define WifiESP32_h
2021-09-21 09:23:52 +02:00
2021-09-25 23:18:10 +02:00
#include "FSH.h"
2021-09-21 09:23:52 +02:00
class WifiESP
{
public:
2021-09-25 23:18:10 +02:00
static bool setup(const char *wifiESSID,
const char *wifiPassword,
const char *hostname,
2021-09-21 09:23:52 +02:00
const int port,
const byte channel,
const bool forceAP);
2021-09-21 09:23:52 +02:00
static void loop();
private:
};
2021-10-05 10:39:08 +02:00
#endif //WifiESP8266_h
#endif //ESP8266