cloud/coap_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_COAP_DEMO_SETTINGS \
{ \
.magic = SETTINGS_MAGIC_NUMBER, \
.host = COAP_HOST, \
.port = COAP_PORT, \
.path = COAP_PATH \
}
// Hub name: eg: .hub_name = "myhub" (without azure-device.net)
// Device key eg: .device_key = "gLsjZ1pO6IwVFqrib4Tt/dVE7/7n3FPLp5FIC/PS4Wo="
// these values will automatically be loaded into NVM on startup
GOS_NVM_CREATE_DEFAULT_ENTRY(COAP, DEMO, coap_settings_t, DEFAULT_COAP_DEMO_SETTINGS);