void setup() Serial.begin(115200);
void loop() RMaker.handle(); // Keep the cloud connection alive rmaker.h library download zip
#include <rmaker.h> #include <WiFi.h> // Device declaration static RMakerDevice lightDevice("Smart Bulb"); void setup() Serial
// Initialize the device RMaker.init();
// Start the RainMaker service RMaker.start(); void setup() Serial.begin(115200)
Serial.println("Device ready. Use ESP RainMaker app to control.");