Lines Matching refs:main_coap_context
28 static coap_context_t *main_coap_context = NULL; variable
171 main_coap_context = coap_new_context(NULL); in client_coap_init()
172 LWIP_ASSERT("Failed to initialize context", main_coap_context != NULL); in client_coap_init()
174 coap_context_set_block_mode(main_coap_context, COAP_BLOCK_USE_LIBCOAP); in client_coap_init()
175 coap_lwip_set_input_wait_handler(main_coap_context, input_wait, input_arg); in client_coap_init()
178 session = coap_new_client_session(main_coap_context, NULL, &dst, in client_coap_init()
198 session = coap_new_client_session_psk2(main_coap_context, NULL, &dst, in client_coap_init()
204 coap_register_response_handler(main_coap_context, message_handler); in client_coap_init()
205 coap_register_nack_handler(main_coap_context, nack_handler); in client_coap_init()
231 coap_free_context(main_coap_context); in client_coap_finished()
232 main_coap_context = NULL; in client_coap_finished()
238 coap_io_process(main_coap_context, 1000); in client_coap_poll()