Merge pull request #340 from joakimeriksson/coap-example-fix

coap-example: made endpoint static in process
This commit is contained in:
George Oikonomou 2018-03-05 16:11:07 +00:00 committed by GitHub
commit f28da42acf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,7 @@ client_chunk_handler(coap_message_t *response)
}
PROCESS_THREAD(er_example_client, ev, data)
{
coap_endpoint_t server_ep;
static coap_endpoint_t server_ep;
PROCESS_BEGIN();
static coap_message_t request[1]; /* This way the packet can be treated as pointer as usual. */