Code Monkey home page Code Monkey logo

espnowfloodingmesh's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

espnowfloodingmesh's Issues

Feedback and questions about the future of this library

Hi,

I've just discovered this nice library and would love to use it. IMHO there are a few small issues but the first tests are very promising. What are your plans? Will you continue to use and improve this library? Will you accept pull requests?

Some questions

Time Sync

My current master node does not have an RTC so every time I reboot it, time starts at 0. So after rebooting the master I have to wait until the master's uptime is higher than it was before the reboot. Checking the timestamp is labeled as a security feature but I don't see how this improves the security. If I'm able to inject a valid encrypted message to the network the security is broken nevertheless. An attacker could use an arbitrary high timestamp to circumvent this check completely.

Do I miss something here? If not, I recommend removing the check for a valid time completely.

Mesh State Handling

I don't see a good way to check the state of the mesh from outside the library. espNowFloodingMesh_syncWithMasterAndWait seems to be the only way to check if there was a connection to the mesh in the past. The variable syncronized (btw, there is a h missing there…) looks promising but is never set to false when there are no more time sync messages arriving and there is also no clean way to query the state from outside.

I'm not sure I did understand the code correctly as time sync seems to be optional. So the variable syncronized not always represents the mesh state.

If I did interpret this correctly I would propose to add:

  • a callback function which is called on mesh state changes (synced, sync loss)
  • A function to query the connection state

Documentation

Digging through the code does help but comments are very sparse. What is the meaning for variables like syncronized or isespNowFloodingMeshInitialized?

Also, the callback method espNowFloodingMesh_RecvCB seems to be undocumented. It is not too hard to get most of the information out of the source code of the SimpleMQTT library but IMHO this should be minimally documented here.

Please don't get me wrong… these are just my 2 cents and the library does look very promising.

[email protected]: Permission denied (publickey).

When installing the gateway I received this message:

pi@pi44:~ $ git clone [email protected]:arttupii/EspNowFloodingMesh.git
Cloning into 'EspNowFloodingMesh'...
Warning: Permanently added the RSA host key for IP address '140.82.113.4' to the list of known hosts.
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

How do I fix it? Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.