Corrected json and added check to ensure that needed json options are set

pull/10598/head
Mika Leppänen 2019-05-17 10:42:26 +03:00
parent 5fbbfee201
commit 9e22354f63
2 changed files with 5 additions and 1 deletions

View File

@ -155,7 +155,7 @@
"value": 0
},
"certificate-header": {
"help": "Certificate header",
"help": "File name of the certificate header file (used on include directive)",
"value": null
},
"root-certificate": {

View File

@ -29,6 +29,10 @@
#include "sw_mac.h"
#include "ws_management_api.h" //ws_management_node_init
#ifdef MBED_CONF_MBED_MESH_API_CERTIFICATE_HEADER
#if !defined(MBED_CONF_MBED_MESH_API_ROOT_CERTIFICATE) || !defined(MBED_CONF_MBED_MESH_API_OWN_CERTIFICATE) || \
!defined(MBED_CONF_MBED_MESH_API_OWN_CERTIFICATE_KEY)
#error Invalid Wi-SUN certificate configuration
#endif
#include MBED_CONF_MBED_MESH_API_CERTIFICATE_HEADER
#endif