Changed from ESP8266 to ESP32. Works much better.

HTTP server is disabled (for now).
This commit is contained in:
2019-11-11 05:32:41 +01:00
parent 2ea2ec479a
commit d799448c97
15 changed files with 273 additions and 204 deletions

View File

@ -5,12 +5,10 @@
#include "player.h"
#include "mqtt_client.h"
#include <MFRC522.h>
#include <Adafruit_MCP23017.h>
class Controller {
private:
MFRC522* _rfid;
Adafruit_MCP23017* _mcp;
SPIMaster* _spi;
MQTTClient* _mqtt_client;
bool _rfid_enabled = true;
@ -32,7 +30,7 @@ private:
unsigned long _last_mqtt_report_at = 0;
void _send_mqtt_report();
public:
Controller(Player* p, Adafruit_MCP23017* m, SPIMaster* s);
Controller(Player* p, SPIMaster* s);
void set_mqtt_client(MQTTClient* m);
String get_status_json();
void loop();