[][src]Function libcoap_sys::coap_delete_observer

pub unsafe extern "C" fn coap_delete_observer(
    resource: *mut coap_resource_t,
    session: *mut coap_session_t,
    token: *const coap_binary_t
) -> c_int

Removes any subscription for @p observer from @p resource and releases the allocated storage. The result is @c 1 if an observation relationship with @p observer and @p token existed, @c 0 otherwise.

@param resource The observed resource. @param session The observer's session. @param token The token that identifies this subscription or @c NULL for any token. @return @c 1 if the observer has been deleted, @c 0 otherwise.