Stuff™️
parent
3dc5d73cf0
commit
246f9e7c42
@ -1,10 +1,33 @@
|
||||
#include <ArduinoOTA.h>
|
||||
#include <WebMonitor.h>
|
||||
#include <ESP8266WiFi.h>
|
||||
#include <WiFiSettings.h>
|
||||
|
||||
|
||||
#define L4S_PORT 4533
|
||||
#define WIFI_SSID "VynTracker"
|
||||
#define WIFI_PASSWORD "senha1234"
|
||||
|
||||
void setup_ota();
|
||||
void setup_wifi();
|
||||
void setup_comm();
|
||||
|
||||
void comms_loop();
|
||||
#ifndef COMM_H
|
||||
#define COMM_H
|
||||
|
||||
class CommunicationsController {
|
||||
private:
|
||||
String recv;
|
||||
WifiClient l4s;
|
||||
WifiServer l4sServer(L4S_PORT);
|
||||
|
||||
void recv();
|
||||
void init_ota();
|
||||
void init_wifi();
|
||||
void handle_client();
|
||||
void create_connection();
|
||||
|
||||
public:
|
||||
void init();
|
||||
void process();
|
||||
void parseLook4Sat(float* azimuth, float* altitude);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue