bluerange-io / bluerange-mesh

BlueRange Mesh (formerly FruityMesh) - The first completely connection-based open source mesh on top of Bluetooth Low Energy (4.1/5.0 or higher)
https://bluerange.io/
Other
288 stars 109 forks source link

Where are module IDs defined? #158

Closed Rewbert closed 3 years ago

Rewbert commented 3 years ago

Hi!

Where are module ID's for the different modules defined? E.g 1 for Beaconing module. I can see that a module id is passed in as an argument to the constructor but I can't trace it and find a call site.

Trying to wrap my head around how modules work so that I can write an example module of my own.

Thanks

Rewbert commented 3 years ago

Nevermind, I found it the second after I wrote this issue. It is in PrimitiveTypes.h.

mariusheil commented 3 years ago

Hi,

make sure to read the documentation on module ids: https://www.bluerange.io/docs/fruitymesh/Specification.html#ModuleIds

Also, you can follow this tutorial: https://www.bluerange.io/docs/fruitymesh/Implementing-a-Custom-Module.html