[riot-notifications] [RIOT-OS/RIOT] net: add CoRE RD lookup client implementation (#10222)
notifications at github.com
Tue Apr 16 10:03:56 CEST 2019
pokgak commented on this pull request.
> +ssize_t cord_lc_ep_raw(const cord_lc_rd_t *rd, uint8_t content_format,
+ char *result, size_t maxlen);
+ * @brief Look for registered resources at a RD server
+ * @param[in] rd the target RD server
+ * @param[out] resources list of resources at @p rd
+ * @param[in] limit max number of resources prepared to receive
+ * @return number of found resources on success
+ * @return CORD_LC_NORSC if there is no resource lookup interface at @p rd
+ * @return CORD_LC_TIMEOUT if lookup timed out
+ * @return CORD_LC_ERR on any other internal error
+ssize_t cord_lc_res(const cord_lc_rd_t *rd, cord_lc_res_t *resources, size_t limit);
Aah okay. That's what you mean.
> Maybe the cord_lc_rd_t parameter could remember the last character read from the query result, as well as remember the last block number it retrieved.
There are actually [page and count parameters] that can be used for the lookup. So this should be easier to implement. Just as a note for now.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications