Describe the bug
hi I want to write a test chat to my whatsapp using this code
`
void closeExistingConnections() {
// NTP-Verbindung stoppen
timeClient.end();
// WLAN-Verbindung trennen
WiFi.disconnect(true);
delay(100); // Kurz warten, um die Verbindung sauber zu schließen
Serial.println("Alle bestehenden Verbindungen geschlossen.");
}
void Wlan_init(){
// Bevor eine neue Verbindung aufgebaut wird, bestehende schließen
closeExistingConnections();
WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
while (WiFi.status() != WL_CONNECTED) {
delay(1000);
Serial.println("Verbindung wird aufgebaut...");
}
Serial.println("Mit WLAN verbunden!");
Callmebot.whatsappMessage(phonenummber, your_apikey,"hi");
To Reproduce
After I run this code I just get this masege
[ 2413][E][ssl_client.cpp:37] _handle_error(): [start_ssl_client():264]: (-32512) SSL - Memory allocation failed
[ 2423][E][WiFiClientSecure.cpp:144] connect(): start_ssl_client: -32512
I ask chatgpt and do same thing but it all didit help
Expected behavior
write hi to my whatsapp
Screenshots
IDE and its version:
PlatformIO
Device
Describe the bug
hi I want to write a test chat to my whatsapp using this code
`
void closeExistingConnections() {
// NTP-Verbindung stoppen
timeClient.end();
}
void Wlan_init(){
// Bevor eine neue Verbindung aufgebaut wird, bestehende schließen
closeExistingConnections();
WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
while (WiFi.status() != WL_CONNECTED) {
delay(1000);
Serial.println("Verbindung wird aufgebaut...");
}
Serial.println("Mit WLAN verbunden!");
Callmebot.whatsappMessage(phonenummber, your_apikey,"hi");To Reproduce
After I run this code I just get this masege
[ 2413][E][ssl_client.cpp:37] _handle_error(): [start_ssl_client():264]: (-32512) SSL - Memory allocation failed
[ 2423][E][WiFiClientSecure.cpp:144] connect(): start_ssl_client: -32512
I ask chatgpt and do same thing but it all didit help
Expected behavior
write hi to my whatsapp
Screenshots
IDE and its version:
PlatformIO
Device