feat: discord call api #1

Merged
Clement merged 6 commits from feat--discord-call-api into master 2023-08-18 17:50:35 +00:00
Showing only changes of commit 1acf1821e6 - Show all commits

View File

@ -5,7 +5,7 @@ Program::Program() {
Serial.begin(MONITOR_SPEED);
WiFi.begin(WSSID, PASS);
Serial.print("Connecting to ");
Serial.print(WSSID); Serial.println(" ...");
@ -16,7 +16,7 @@ Program::Program() {
}
Serial.println('\n');
Serial.println("Connection established!");
Serial.println("Connection established!");
Serial.print("IP address:\t");
Serial.println(WiFi.localIP()); // Send the IP address of the ESP8266 to the computer
@ -24,6 +24,8 @@ Program::Program() {
this->discord = new DiscordAPI(DISCORD_HOOK);
Serial.println(this->discord->sendMessage("hello the world !!"));
delay(1000);
Serial.println(this->discord->sendheure("10h", "18h"));
}
void Program::loop() {