- Notifications
You must be signed in to change notification settings - Fork580
Problemas ao conectar o esp32 ao servidor socket do node#703
-
Alguém poderia me ajudar. Não sei o motivo de estar dando errado, já faz mais de semanas que ando pesquisando. Se alguém puder me ajudar, agradeço de coração. Esse é um requisito para produzir meu TCC. Obrigado ////////////////// Server node ///////////////////////////// ////////////// Esp32 code /////////////////////////////////qq |
BetaWas this translation helpful?Give feedback.
All reactions
based on google translate, you have some problem but I am not sure what exactly.
can you post logs of the debug output on the ESP?
only think I can see in the code is that yoursocketIO.begin does not set the protocol version,
which may results in problems.
socketIO.begin("192.168.0.101",5000,"/socket.io/?EIO=4");
Replies: 2 comments 1 reply
-
based on google translate, you have some problem but I am not sure what exactly. only think I can see in the code is that your socketIO.begin("192.168.0.101",5000,"/socket.io/?EIO=4"); |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Ele compila perfeitamente, só não conecta ao servidor. ////// Serial WiFi connected [IOc] Disconnected! Essa biblioteca requer alguma versão específica do node? Meu arquivo json do servidor: "scripts": { |
BetaWas this translation helpful?Give feedback.
All reactions
-
Funcionou! Estava dando desconectado sempre quanto estava usando a versão 4 do socket.io do node, fui testando as versões e quando atualizei a versão do socket.io do node para a 2.3.0 funcionou perfeitamente. Cara, parabéns pelo trabalho e obrigado pela contribuição, abraços |
BetaWas this translation helpful?Give feedback.