mqtt:8: error: no matching function for call to 'PubSubClient::PubSubClient(IPAddress&, int)'
mqtt.ino:8:32: note: candidates are:
In file included from mqtt.ino:2:0:
C:\ArduinoSketch\libraries\pubsubclient-master\src/PubSubClient.h:89:4: note: PubSubClient::PubSubClient(Client&, String, uint16_t)
PubSubClient(Client& c, String hostname, uint16_t port = 1883);
^
C:\ArduinoSketch\libraries\pubsubclient-master\src/PubSubClient.h:89:4: note: no known conversion for argument 1 from 'IPAddress' to 'Client&'
C:\ArduinoSketch\libraries\pubsubclient-master\src/PubSubClient.h:87:4: note: PubSubClient::PubSubClient(Client&, IPAddress&, uint16_t)
PubSubClient(Client& c, IPAddress &ip, uint16_t port = 1883);
^
C:\ArduinoSketch\libraries\pubsubclient-master\src/PubSubClient.h:87:4: note: no known conversion for argument 1 from 'IPAddress' to 'Client&'
C:\ArduinoSketch\libraries\pubsubclient-master\src/PubSubClient.h:84:4: note: PubSubClient::PubSubClient(Client&)
PubSubClient(Client& c);
^
C:\ArduinoSketch\libraries\pubsubclient-master\src/PubSubClient.h:84:4: note: candidate expects 1 argument, 2 provided
C:\ArduinoSketch\libraries\pubsubclient-master\src/PubSubClient.h:20:7: note: PubSubClient::PubSubClient(const PubSubClient&)
class PubSubClient {
^
C:\ArduinoSketch\libraries\pubsubclient-master\src/PubSubClient.h:20:7: note: candidate expects 1 argument, 2 provided
C:\ArduinoSketch\libraries\pubsubclient-master\src/PubSubClient.h:20:7: note: PubSubClient::PubSubClient(PubSubClient&&)
C:\ArduinoSketch\libraries\pubsubclient-master\src/PubSubClient.h:20:7: note: candidate expects 1 argument, 2 provided
mqtt.ino:13:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
mqtt.ino:14:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
mqtt.ino:15:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
no matching function for call to 'PubSubClient::PubSubClient(IPAddress&, int)'