coap_startup: Make coap_startup() first function call in examples

This then makes sure that all things libcoap are properly initialized
before use, and coders realize they need to do this.

Note: coap_new_context() continues to make sure that coap_startup()
is invoked if not done previously, but this may be too late.
This commit is contained in:
Jon Shallow authored and Jon Shallow committed 2023-07-25 13:50:18 +01:00
1 parent 2f98643a09
commit 084c866c69
21 files changed
+179 -20

No files matched your search

+2
View File
@@ -416,4 +416,6 @@ int coap_client_delay_first(coap_session_t *session);
/** @} */
extern int coap_started;
#endif /* COAP_NET_INTERNAL_H_ */