This commit is contained in:
2024-05-31 12:58:04 +02:00
parent 28a49950ba
commit bc3c720fc2
2 changed files with 3 additions and 1 deletions

View File

@@ -34,7 +34,7 @@ struct acceleration {
accelData.z, accelData.z,
"data"); "data");
// %d = int, %f = floatation, %s = string // %d = int, %f = floatation, %s = string
connectivity.httpPost("192.168.137.243", "/", 3445, buffer, strlen(buffer), "application/json"); connectivity.httpPost(IP_ADDRESS, "/", 3445, buffer, strlen(buffer), "application/json");
lastTime = currentTime; lastTime = currentTime;
} }
} }

View File

@@ -12,4 +12,6 @@ WebSocketsClient webSocket;
#define pass "12345678" #define pass "12345678"
#define BUFFER_SIZE 1024 #define BUFFER_SIZE 1024
#define DEVICE_ID 1 #define DEVICE_ID 1
#define IP_ADDRESS "192.168.137.12"
char *buffer = (char *)malloc(sizeof(char) * BUFFER_SIZE); char *buffer = (char *)malloc(sizeof(char) * BUFFER_SIZE);