OOP
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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);
|
||||||
|
Reference in New Issue
Block a user