esp32-discord-webhook/foo.ino

16 lines
No EOL
407 B
C++

#include <Discord_WebHook.h>
Discord_Webhook discord;
String DISCORD_WEBHOOK = "https://discord.com/api/webhooks/id/token"; // insert your webhook here
void setup() {
Serial.begin(115200);
discord.begin(DISCORD_WEBHOOK); // init
discord.addWiFi("WiFiName","WiFiPassword"); // update this line to best fit you
discord.connectWiFi();
discord.send("Hello World");
}
void loop() {
}