Disabled websocket in favour of other protocol

This commit is contained in:
2024-05-28 12:58:01 +02:00
parent dd91639fb2
commit 2be0efc37e
3 changed files with 26 additions and 9 deletions

View File

@@ -10,9 +10,9 @@ void setup() {
sensorManager.sensorSetup();
//ws server address, port and URL
webSocket.begin("145.28.160.108", 8001, "");
// webSocket.begin("145.28.160.108", 8001, "");
// try every 500 again if connection has failed
webSocket.setReconnectInterval(500);
// webSocket.setReconnectInterval(500);
}
void loop() {
@@ -40,7 +40,7 @@ void loop() {
sendData(eulerRotation.roll, eulerRotation.pitch, eulerRotation.yaw);
Serial.println();
webSocket.loop();
// webSocket.loop();
}
// if (Serial.available()) {
// String command = Serial.readStringUntil('\n');