- move source file according with platformio standard directory structure

- remove lib_deps from platformio.ini since they are already in libs folder
This commit is contained in:
Luca Oliano
2024-04-27 11:06:13 +02:00
parent afd4d68580
commit ade24e86a8
54 changed files with 132 additions and 45 deletions

View File

@@ -0,0 +1,25 @@
#pragma once
#if defined(ARDUINO_ARCH_ESP8266) || defined(ARDUINO_ARCH_ESP32)
#include "Transport/Transport.h"
#include "EthernetClient.h"
namespace espMqttClientInternals {
class ClientSyncW5500 : public Transport {
public:
ClientSyncW5500();
bool connect(IPAddress ip, uint16_t port) override;
bool connect(const char* host, uint16_t port) override;
size_t write(const uint8_t* buf, size_t size) override;
int read(uint8_t* buf, size_t size) override;
void stop() override;
bool connected() override;
bool disconnected() override;
EthernetClient client;
};
} // namespace espMqttClientInternals
#endif