I am using ESP8266 and Arduino with
SoftwareSerial. My requirement is to use MQTT protocol with it. So I am using an MQTT library named
pubSubClient but the problem is it doesn't support
SoftwareSerial. Could anyone tell me how can I use MQTT protocol with it?
#include #include SoftwareSerial esp(2, 3); // RX, TX PubSubClient client(esp);
The error I get is:
no matching function for call to 'PubSubClient::PubSubClient(SoftwareSerial&)