Fixed it so it only pulls the ip once

This commit is contained in:
2024-06-03 14:21:42 +02:00
parent c084443799
commit 53bc94aba3
4 changed files with 13 additions and 8 deletions

View File

@@ -15,3 +15,5 @@ WebSocketsClient webSocket;
#define IP_ADDRESS "192.168.137.12"
char *buffer = (char *)malloc(sizeof(char) * BUFFER_SIZE);
const char* serverIp = NULL; // Declare serverIp here
bool ipAquired = false;