Skip to content

Issue with consecutive mesh.sendBroadcast() #3

@lbovay

Description

@lbovay

First of all thank you for this code.

I'm running into some issues using the mesh.sendBroadcast() function when trying to send 2 strings through my webSocket. It looks like only one of them is arriving to my js code, for example if I use yerpCb() from the demoToy example shown in easyMesh https://github.com/Coopdis/easyMesh/tree/master/examples/demoToy :

What I added to the c code after line 95 here https://github.com/Coopdis/easyMesh/blob/master/examples/demoToy/demoToy.ino :
String ping("ping"); broadcastWsMessage(ping.c_str(), ping.length(), OPCODE_TEXT); //sendWsControl(); String pong("pong"); broadcastWsMessage(pong.c_str(), pong.length(), OPCODE_TEXT);

When I open my webpage and connect to my device I only get:
ping ping ping

For some reason the pong string is never received. Any idea why ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions