Problem with a library in Arduino IoT Cloud

Hi @iridargyros. I'll provide instructions you can follow to configure the library that should be used when compiling your sketch in Arduino Cloud:

  1. If you are not already, log in to your Arduino account:
    https://login.arduino.cc/login

  2. Click the following link to open the list of your Arduino Cloud sketches in the web browser:
    https://app.arduino.cc/sketches

  3. Select the sketch for which you want to configure the library to be used.
    The sketch will open in Arduino Cloud Editor.

  4. Click the icon that looks like shelved books ("Libraries") in the bar on the left side of the Cloud Editor page.
    The "Libraries" panel will open.

  5. Type SparkFun MAX3010x Pulse and Proximity Sensor Library in the "Search libraries" field near the top of the panel.

  6. You will see text under the "Search libraries" field:

    Show libraries for:
    <board name>

    (where <board name> is the name of the board you have selected in Cloud Editor)
    Click the board name in that text.
    The text will now change to:

    Show libraries for:
    ALL DEVICES

  7. Scroll down through the list of libraries until you find the entry for the "SparkFun MAX3010x Pulse and Proximity Sensor Library" library.

  8. You will see a dropdown menu in the library's entry. Click on it.
    The menu will open.

  9. Select the version of the library you want the sketch to use from the menu.
    :exclamation: You must select a menu item other than the "Latest (...)" item at the top of the menu.
    The menu will close.

  10. Click the "INCLUDE" button in the "" library entry.
    Clicking this button configures the sketch to use the "" library, at the specific version selected from the menu.
    You might now see a "Library already included" notification. This is expected and doesn't indicate any problem.

  11. As an irrelevant side effect, one or more #include directives may have been added to the sketch. These newly added directives will only clutter up your sketch and might even cause problems, so delete those lines from the sketch.

Now try compiling the sketch again. This time the expected library should be used.

Note that the library configuration achieved via the above procedure was specific to the sketch you had open in Arduino Cloud Editor. If you want to make the same configuration for another sketch, open it in Cloud Editor and repeat the procedure.

The above procedure configured the sketch to always use the version you selected from the menu. Important enhancements or bug fixes might be made to the library in future releases of the library, so it is a good idea to periodically check for the availability of newer versions. You can repeat the procedure above to configure the sketch to use a different version of the library.


Please let me know if you have any questions or problems while following those instructions.