Skip to content

Commit 9e22354

Browse files
author
Mika Leppänen
committed
Corrected json and added check to ensure that needed json options are set
1 parent 5fbbfee commit 9e22354

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

features/nanostack/mbed-mesh-api/mbed_lib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
"value": 0
156156
},
157157
"certificate-header": {
158-
"help": "Certificate header",
158+
"help": "File name of the certificate header file (used on include directive)",
159159
"value": null
160160
},
161161
"root-certificate": {

features/nanostack/mbed-mesh-api/source/wisun_tasklet.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
#include "sw_mac.h"
3030
#include "ws_management_api.h" //ws_management_node_init
3131
#ifdef MBED_CONF_MBED_MESH_API_CERTIFICATE_HEADER
32+
#if !defined(MBED_CONF_MBED_MESH_API_ROOT_CERTIFICATE) || !defined(MBED_CONF_MBED_MESH_API_OWN_CERTIFICATE) || \
33+
!defined(MBED_CONF_MBED_MESH_API_OWN_CERTIFICATE_KEY)
34+
#error Invalid Wi-SUN certificate configuration
35+
#endif
3236
#include MBED_CONF_MBED_MESH_API_CERTIFICATE_HEADER
3337
#endif
3438

0 commit comments

Comments
 (0)