Connecting to socket #35
Unanswered
MythicalForce
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
i'm going start of by saying im not the best coder in the world.
I've been testing this awsome project on my ESP32! and everything is working and i could connect to the ESP32 via IP in browser and change the pattern there.
What im trying to figure out is how to connect to the same socket via software (Qt).
i was looking at the jQuery ajax call
here you send
'currentEffectIndex': ui.selected.id
and that's it or?cause reading this got me hella confused! i've worked with a simple Websocket befor! but this has some extra stuff to it as when i try to connect to it i get "Connected to host" but right after "Error: QAbstractSocket::RemoteHostClosedError" obvs im only connecting but not sending any data but how does this work?
socket.h
https://hastebin.com/tikiqubini.cpp
socket.cpp
https://hastebin.com/vegapeleku.php
mainwindow.cpp
https://hastebin.com/dazotukigu.cpp
Beta Was this translation helpful? Give feedback.
All reactions