Problem with socket.recv()

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
plugowski
Posts: 4
Joined: Tue Apr 10, 2018 5:35 am
Location: Tricity, Poland
Contact:

Problem with socket.recv()

Post by plugowski » Wed Apr 25, 2018 5:06 pm

Hi,

I have some problem, I try to rebuild websocket library provided by @BetaRavener - here is my code: https://github.com/plugowski/micropytho ... _init__.py

Problem is with socket.recv() method, it looks like it stuck here and doesn't return anything...

Is somebody able to help me?

cefn
Posts: 205
Joined: Tue Aug 09, 2016 10:58 am

Re: Problem with socket.recv()

Post by cefn » Tue May 01, 2018 12:28 pm

Hi there. I tried to follow what you were experiencing but you've provided really very minimal information. If you are hoping for others to invest the time in supporting you, please invest some time yourself in reporting the issue (and attempting to diagnose, workaround, compare configurations, recording your results).

There is a useful reference here...
https://www.chiark.greenend.org.uk/~sgtatham/bugs.html

Probably in your case, you should try to replicate the problem with the absolute minimum code, and while you are doing that you will probably realise what's wrong anyway.

Other useful facts which you should take responsibility for gathering and sharing when you want help with an issue;

1) Have you proven that @BetaRavener's code works on your platform and in your scenario? If not, there's little point using it as a working reference.

2) What change in behaviour compared to @BetaRavener's code are you trying to achieve?

3) What precisely is the failure you are experiencing with your modified version, compared to the working configuration you proved in step 1).

4) Try changing the code progressively, and figure out which change to @BetaRavener's code triggers the failure.

This is a welcoming and supportive community, so don't take my feedback too harshly. Hopefully we can guide you to get the help you need, but this will take some work on your part too.

Post Reply