diff --git a/examples/osd/triggerbaord/resources/res-event.c b/examples/osd/triggerbaord/resources/res-event.c old mode 100644 new mode 100755 index 8bc68102d..6470c311b --- a/examples/osd/triggerbaord/resources/res-event.c +++ b/examples/osd/triggerbaord/resources/res-event.c @@ -93,6 +93,9 @@ res_get_handler(void *request, void *response, uint8_t *buffer, uint16_t preferr } /* A post_handler that handles subscriptions/observing will be called for periodic resources by the framework. */ + + // tell client when to schedule re-registration: 1 Hour + REST.set_header_max_age(response, /* uint32_t, Seconds */ 3600); } /* * Additionally, res_event_handler must be implemented for each EVENT_RESOURCE.