cloud/dps_demo/nvm_defaults.c

/*******************************************************************************
* # License
* Copyright 2019 Silicon Laboratories Inc. www.silabs.com
*******************************************************************************
*
* The licensor of this software is Silicon Laboratories Inc. Your use of this
* software is governed by the terms of Silicon Labs Master Software License
* Agreement (MSLA) available at
* www.silabs.com/about-us/legal/master-software-license-agreement. This
* software is distributed to you in Source Code format and is governed by the
* sections of the MSLA applicable to Source Code.
*
******************************************************************************/
#include "nvm_settings.h"
#define DEFAULT_DPS_DEMO_SETTINGS \
{ \
.magic = DPS_DEMO_SETTINGS_MAGIC, \
.hostname = DEFAULT_PROVISIONING_HOST, \
.port = DEFAULT_PROVISIONING_PORT, \
.connector = DEFAULT_CONNECTOR_CODE, \
.ca_cert = DEFAULT_CA_CERT_FILE, \
.key_filename = DEFAULT_CLIENT_KEY_FILE, \
.cert_filename = DEFAULT_CLIENT_CERT_FILE, \
}
// these values will automatically be loaded into NVM on startup
GOS_NVM_CREATE_DEFAULT_ENTRY(DPS, DEMO, dps_demo_settings_t, DEFAULT_DPS_DEMO_SETTINGS);