add test call

This commit is contained in:
2023-08-05 11:55:21 +02:00
parent 347e788680
commit 908ca96c39
4 changed files with 94 additions and 1 deletions

View File

@ -3,6 +3,27 @@
Program::Program() {
// Startup
Serial.begin(MONITOR_SPEED);
WiFi.begin(WSSID, PASS);
Serial.print("Connecting to ");
Serial.print(WSSID); Serial.println(" ...");
int i = 0;
while (WiFi.status() != WL_CONNECTED) { // Wait for the Wi-Fi to connect
delay(1000);
Serial.print(++i); Serial.print(' ');
}
Serial.println('\n');
Serial.println("Connection established!");
Serial.print("IP address:\t");
Serial.println(WiFi.localIP()); // Send the IP address of the ESP8266 to the computer
this->discord = new DiscordAPI(DISCORD_HOOK);
Serial.println(this->discord->sendMessage("hello the world !!"));
}
void Program::loop() {