Skip to content
Discussion options

You must be logged in to vote

Okay I think I have a path now, thanks to help from davefes. The server buffer size matters to make sure you capture all the data sent, but it doesn't appear to cause the crash. The crash is caused by not having a delay in the while loop at client -- so I suppose if the data sent is more than the esp32 wifi can keep up with, there is a crash. If I add a delay as follows:

while True:
    samples = make_tone.make_tone(SAMPLE_RATE_IN_HZ, 
        SAMPLE_SIZE_IN_BITS, TONE_FREQUENCY_IN_HZ)
    print(samples)
    s.sendto(samples, (ADDR, PORT))
    time.sleep(0.1)

There is no crash, and the server receives the data. I'm not sure I can do what I want to do, which is to send audio data in real …

Replies: 3 comments 19 replies

Comment options

You must be logged in to vote
15 replies
@A622266
Comment options

@davefes
Comment options

@davefes
Comment options

@davefes
Comment options

@davefes
Comment options

Comment options

You must be logged in to vote
2 replies
@A622266
Comment options

@davefes
Comment options

Comment options

You must be logged in to vote
2 replies
@davefes
Comment options

@A622266
Comment options

Answer selected by A622266
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants