-->
Page 3 of 22

Re: easyMesh

PostPosted: Fri Oct 07, 2016 3:39 pm
by picstart
Do you think this is being caused by a bug in the example ino code or in the core src code? Maybe you should open an issue on the developer’s github site https://github.com/Coopdis/easyMesh/issues

I think it is a bug in the core src and it is related to the timestamps that I believe roll over after 71 minutes which is coincidental to the time that the mesh break apart broke apart.
The timestamps seem to influence the prominence a device gets in the mesh like becoming the master or the slave. EasyMesh has the goal of being self configurable so depending on exactly when a device joins sets its prominence.
I have a UDP network but is has fixed prominence in that each device has a designated roll. EasyMesh represents a good alternative and can survive a device going offline.

Re: easyMesh

PostPosted: Sat Oct 08, 2016 11:56 am
by Ian Phill
Somebody can to share an easyExample about easyMesh something like send a character from server and take a decision in the client?

example:
//==============
server
send i=0
//==============
client
if (getvaluefromserver(i)) println("OK");

Other thing, I'm using Arduino IDE but not Arduino board, I'm writing the source in Generic ESP8266 Module, it's fine or I need the Arduino board ???

Thank you in advance

Re: easyMesh

PostPosted: Sat Oct 08, 2016 9:05 pm
by sfranzyshen
picstart wrote:The issue is after about an hour the mesh breaks apart and devices start only sending messages to themselves
startHere: Received from 796707 msg=Hello from node 796707
startHere: Received from 796707 msg=Hello from node 796707
startHere: Received from 796707 msg=Hello from node 796707
startHere: Received from 796707 msg=Hello from node 796707
startHere: Received from 796707 msg=Hello from node 796707
startHere: Received from 796707 msg=Hello from node 796707
startHere: Received from 796707 msg=Hello from node 796707
startHere: Received from 796707 msg=Hello from node 796707
startHere: Received from 796707 msg=Hello from node 796707
startHere: Received from 796707 msg=Hello from node 796707
startHere: Received from 796707 msg=Hello from node 796707

startHere: Received from 12593318 msg=Hello from node 12593318
startHere: Received from 12593318 msg=Hello from node 12593318
startHere: Received from 12593318 msg=Hello from node 12593318
startHere: Received from 12593318 msg=Hello from node 12593318
startHere: Received from 12593318 msg=Hello from node 12593318
startHere: Received from 12593318 msg=Hello from node 12593318
startHere: Received from 12593318 msg=Hello from node 12593318


I also have been able to duplicate this ... so I went ahead and opened an issue at github https://github.com/Coopdis/easyMesh/issues/10

Re: easyMesh

PostPosted: Sat Oct 08, 2016 9:15 pm
by sfranzyshen
Ian Phill wrote:Somebody can to share an easyExample about easyMesh something like send a character from server and take a decision in the client?

example:
//==============
server
send i=0
//==============
client
if (getvaluefromserver(i)) println("OK");

Other thing, I'm using Arduino IDE but not Arduino board, I'm writing the source in Generic ESP8266 Module, it's fine or I need the Arduino board ???

Thank you in advance


Right now the only examples are in the examples folder ...
Right now the code ONLY works with the esp8266 (no other arduino boards ard supported)

as far as for the example outlined above ... it is not clear ... read this example and intro
https://github.com/Coopdis/easyMesh/blo ... rtHere.ino
https://github.com/Coopdis/easyMesh/blo ... /README.md