Git Hub

We all use GitHub for code retrieval. Most times there is a green 'Clone or Download' button to click. Recently for an IoT project I was directed to the link shown in the attached photo. Try as I might, I cannot find any way to download the MQTT .cpp, or .h files as a .zip file. I have seen this before, but infrequently. Can someone advise on a method for retrieving these files that keeps IDE happy? Thanks in advance.

That button is only available on the home page of the library, now when you are in subfolders, as those links take you to. You can get to the home page by clicking on the "EasyIoT-Cloud" link at the top of the page. On that page you will see a green button labeled "Clone or download". Click on that and then select the option "Download ZIP". This will download the entire repository as a .zip file. This is less than ideal in this case because from reading the instructions you are only interested in the sketch:

and the library folder:

yet the repository contains other files but it's still easier and less error-prone to download the full repository.

This will download the file EasyIoT-Cloud-master.zip. That file is not suitable for use to install the esp-mqtt library because it is not structured correctly for that use. To install the library you have two options:

.zip file installation

  • zip the folder EasyIoT-Cloud/libraries/esp-mqtt/
  • install the library via Sketch > Include Library > Add .ZIP Library...

manual library installation

  • copy the folder EasyIoT-Cloud/libraries/esp-mqtt/ to {sketchbook folder}/libraries. The sketchbook folder location can be found at File > Preferences > Sketchbook location in the Arduino IDE.

Just a reference for anyone wondering what we're talking about:
[url=http://https://dzone.com/articles/building-an-esp8266-internet-connected-4-relay-switch]https://dzone.com/articles/building-an-esp8266-internet-connected-4-relay-switch[/url]

pert...thank you very much for your detailed response...I knew it had to be something simple...I'm sure this will be an aid to others as well.
John