Skip to content

Commit

Permalink
teste aula
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardossaleme committed Nov 16, 2023
1 parent f276811 commit 88e5743
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions control-car-backend/backend-esp/backend-esp.ino
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
WebSocketsServer webSocket = WebSocketsServer(81);

// Autenticação wi-fi - Coloque aqui a sua configuração
const char* ssid = "";
const char* password = "";
const char* ssid = "PIC2-2.4G";
const char* password = "engcomp@ufes";

// Tratamento de eventos dos dados que vêm do cliente
void webSocketEvent(uint8_t num, WStype_t type, uint8_t * payload, size_t lenght) {
Expand Down
4 changes: 2 additions & 2 deletions control-car-frontend/client.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
document.addEventListener("DOMContentLoaded", function() {
console.log("script carregado.");

let connection = new WebSocket("ws://192.168.0.13:81", ['arduino']);
let connection = new WebSocket("ws://10.0.0.101:81", ['arduino']);

// escuta menssagem do ESP8266
connection.onmessage = function(messageEvent) {
Expand Down Expand Up @@ -46,4 +46,4 @@ document.addEventListener("DOMContentLoaded", function() {
connection.send("OFF");
}

});
});

0 comments on commit 88e5743

Please sign in to comment.