Skip to content
Snippets Groups Projects
  • Pekka Nikander's avatar
    8f10d65a
    net/gcoap: Make references to coap_resource_t const in gcoap · 8f10d65a
    Pekka Nikander authored
        A CoAP resource is a primary object between the application
        and CoAP library.  The Library needs the paths, methods,
        and handlers from it, so that it can call the right handler.
        However, it never needs to change any of them.
    
        The application also needs the resources.  The application
        may want to declare the resources as const, since it may
        want to store them in flash.
    8f10d65a
    History
    net/gcoap: Make references to coap_resource_t const in gcoap
    Pekka Nikander authored
        A CoAP resource is a primary object between the application
        and CoAP library.  The Library needs the paths, methods,
        and handlers from it, so that it can call the right handler.
        However, it never needs to change any of them.
    
        The application also needs the resources.  The application
        may want to declare the resources as const, since it may
        want to store them in flash.