Changed from ESP8266 to ESP32. Works much better.
HTTP server is disabled (for now).
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user