// Initialize the device RMaker.init();
lib_deps = https://github.com/espressif/esp-rainmaker-arduino/archive/refs/heads/master.zip Or, if you downloaded the ZIP locally: rmaker.h library download zip
// Add the parameter to device lightDevice.addParameter(powerParam); // Initialize the device RMaker
#include <rmaker.h> #include <WiFi.h> // Device declaration static RMakerDevice lightDevice("Smart Bulb"); // Initialize the device RMaker.init()
: Ensure your board is set to an ESP32/ESP8266 before uploading. Common Errors When Using the Manual ZIP Even with the correct rmaker.h library download zip , you might encounter errors. Here’s how to fix them: