This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Implementing mesh callback functions using op codes.

Hi I noticed that all of the examples use common/src/app_level.c Why is that? Is it recommended to not implement your own generic_level callback for example?

Parents
  • Hi,

    The contents of the examples/common/ folder is functionality that is needed for most or all examples, and in order not to duplicate the same code for each and every example it is put in a folder common for all examples. It is not considered part of the mesh stack or "normal" SDK modules, so you are free to modify or replace as you see fit. Of course if you can use it without modification that is great, as the code has been tested by us prior to SDK release.

    Regards,
    Terje

Reply
  • Hi,

    The contents of the examples/common/ folder is functionality that is needed for most or all examples, and in order not to duplicate the same code for each and every example it is put in a folder common for all examples. It is not considered part of the mesh stack or "normal" SDK modules, so you are free to modify or replace as you see fit. Of course if you can use it without modification that is great, as the code has been tested by us prior to SDK release.

    Regards,
    Terje

Children
Related