sendBroadcast includeSelf not working

130 views
Skip to first unread message

Brian Canning

unread,
Feb 12, 2020, 12:02:45 PM2/12/20
to painlessmesh-user

Hi

 

I've been chasing my tail a bit on this. When using a sendBroadcast if you includeSelf it doesn't work?

 

The description states " includeSelf = true overrides this behaviour, causing the receivedCallback to be called when sending a broadcast message."

 

I've tested the example "basic" and changed line 28 to mesh.sendBroadcast( msg, true );

 

 

Thanks

 

 

 

setLogLevel: ERROR | MESH_STATUS | CONNECTION | SYNC | COMMUNICATION | GENERAL | MSG_TYPES | REMOTE |

GENERAL: encodeNodeId():

GENERAL: tcpServerInit():

GENERAL: onNewConnection():

GENERAL: onChangedConnections():

GENERAL: onNodeTimeAdjusted():

CONNECTION: stationScan(): whateverYouLike

COMMUNICATION: sendBroadcast(): msg=Hello from node 2133862235

CONNECTION: scanComplete(): Scan finished

CONNECTION: scanComplete():-- > Cleared old APs.

CONNECTION: scanComplete(): num = 12

CONNECTION:     Found 0 nodes

CONNECTION: connectToAP(): No unknown nodes found scan rate set to normal

COMMUNICATION: sendBroadcast(): msg=Hello from node 2133862235

COMMUNICATION: sendBroadcast(): msg=Hello from node 2133862235

COMMUNICATION: sendBroadcast(): msg=Hello from node 2133862235

COMMUNICATION: sendBroadcast(): msg=Hello from node 2133862235

CONNECTION: stationScan(): whateverYouLike

COMMUNICATION: sendBroadcast(): msg=Hello from node 2133862235

CONNECTION: scanComplete(): Scan finished

CONNECTION: scanComplete():-- > Cleared old APs.

CONNECTION: scanComplete(): num = 13

CONNECTION:     Found 0 nodes

CONNECTION: connectToAP(): No unknown nodes found scan rate set to normal

COMMUNICATION: sendBroadcast(): msg=Hello from node 2133862235

COMMUNICATION: sendBroadcast(): msg=Hello from node 2133862235

COMMUNICATION: sendBroadcast(): msg=Hello from node 2133862235

COMMUNICATION: sendBroadcast(): msg=Hello from node 2133862235

COMMUNICATION: sendBroadcast(): msg=Hello from node 2133862235

CONNECTION: stationScan(): whateverYouLike

COMMUNICATION: sendBroadcast(): msg=Hello from node 2133862235

CONNECTION: scanComplete(): Scan finished

CONNECTION: scanComplete():-- > Cleared old APs.

CONNECTION: scanComplete(): num = 13

CONNECTION:     Found 0 nodes

CONNECTION: connectToAP(): No unknown nodes found scan rate set to normal

COMMUNICATION: sendBroadcast(): msg=Hello from node 2133862235

COMMUNICATION: sendBroadcast(): msg=Hello from node 2133862235

COMMUNICATION: sendBroadcast(): msg=Hello from node 2133862235

COMMUNICATION: sendBroadcast(): msg=Hello from node 2133862235

COMMUNICATION: sendBroadcast(): msg=Hello from node 2133862235

 

 

BlackEdder

unread,
Feb 13, 2020, 1:00:33 AM2/13/20
to painlessmesh-user
Thank you for reporting this. I have opened an issue here: https://gitlab.com/painlessMesh/painlessMesh/issues/335. Should have time over the weekend to look into it.

BlackEdder

unread,
Feb 15, 2020, 9:28:31 AM2/15/20
to painlessmesh-user
This should be fixed in v1.4.5
Reply all
Reply to author
Forward
0 new messages