-
Hello! On the Client side (computer), I use python-socketio, and flask-socketio on the Server side (the board). Then, when I launch the Client program, it seems to send the first information as they are displayed then on the Server thanks to the debug mode (I see the event name and the data attached to it): Received packet MESSAGE data 2["WebSocket_On",{"mode":"4"}]. But here the problem appears: I get the following error: 'Server' object has no attribute 'get_environ'. This comes in an Exception in thread Thread-[number]. I am completely stuck with that error, so if you can help me or giving me some clues, that would be awesome :-) Here the pieces of codes:
Server:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Please include the complete output of the server, including the error, the stack trace and any information that appears before those. Also include the output of |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Miguel, thanks again for your help. |
Beta Was this translation helpful? Give feedback.
Miguel, thanks again for your help.
Your clue about version numbers did the trick. I updated everything to match the requirements. I also needed to add manually some packages as they were not available within Yocto - meta-openembedded packages (version 2020).
But now it works well.