1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

coap/gcoap: unify CoAP ports

This commit is contained in:
Martine Lenders 2022-05-12 18:53:08 +02:00
parent d2fa0c6ce1
commit 632837a0a8
No known key found for this signature in database
GPG Key ID: 2134D77A5336DD80

View File

@ -406,6 +406,7 @@
#if IS_USED(MODULE_GCOAP_DTLS)
#include "net/sock/dtls.h"
#endif
#include "net/coap.h"
#include "net/nanocoap.h"
#include "net/nanocoap/cache.h"
#include "timex.h"
@ -424,13 +425,13 @@ extern "C" {
* @brief Server port; use RFC 7252 default if not defined
*/
#ifndef CONFIG_GCOAP_PORT
#define CONFIG_GCOAP_PORT (5683)
#define CONFIG_GCOAP_PORT (COAP_PORT)
#endif
/**
* @brief Secure Server port; use RFC 7252 default if not defined
*/
#ifndef CONFIG_GCOAPS_PORT
#define CONFIG_GCOAPS_PORT (5684)
#define CONFIG_GCOAPS_PORT (COAPS_PORT)
#endif
/**