I am trying to use MQTT using the following:
Ethernet Arduino board
Using ESP2866 module
For the past 3 years I have been using this library, https://github.com/knolleary/pubsubclient this has worked well.
I now wish to use the ESP8266 with MQTT using this library, https://github.com/Imroy/pubsubclient
Both of these have there own PubSubClient.h , so cannot be in my arduino library at the same time !
My problem is when I compile my code for Ethernet Arduino it will only compile error free using the knolleary library and the ESP8266 will only compile error free using the Imroy library.
This gives me the problem of installing the correct library every time I use ESP8266 or Ethernet Arduino code.
Am I missing something surely i should have one library to be able to do both ?
Thanks
Regards
Gary