Scanning for ESP Devices...
Upload this snippet to your ESP8266/ESP32 to automatically connect it to this dashboard. Make sure to replace the WiFi credentials.
#include
#include
#include
const char* ssid = "YOUR_WIFI_SSID";
const char* password = "YOUR_WIFI_PWD";
const char* apiBaseURL = "https://test.biofeed.danielmello.store";
void setup() {
Serial.begin(115200);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) { delay(500); }
// Register Device
HTTPClient http;
http.begin(String(apiBaseURL) + "/device/register");
http.addHeader("Content-Type", "application/json");
http.POST("{\"name\":\"esp-node\"}");
http.end();
}
void loop() {
// Add your logic to POST /report and GET /commands
delay(5000);
}