![](/media/cache/group/ST_logo_2020_blue_V_cmyk.jpg.50x50_q85.jpg)
BLE EddystoneService example
Embed:
(wiki syntax)
Show/hide line numbers
ConfigParamsPersistence.cpp
00001 /* mbed Microcontroller Library 00002 * Copyright (c) 2006-2015 ARM Limited 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00017 #include "ConfigParamsPersistence.h" 00018 00019 #if !defined(TARGET_NRF51822) && !defined(TARGET_NRF52832) /* Persistent storage supported on nrf51/nrf52 platforms */ 00020 /** 00021 * When not using an nRF51-based target then persistent storage is not available. 00022 */ 00023 #warning "EddystoneService is not configured to store configuration data in non-volatile memory" 00024 00025 bool loadEddystoneServiceConfigParams(EddystoneService::EddystoneParams_t *paramsP) 00026 { 00027 /* Avoid compiler warnings */ 00028 (void) paramsP; 00029 00030 /* 00031 * Do nothing and let the main program set Eddystone params to 00032 * defaults 00033 */ 00034 return false; 00035 } 00036 00037 void saveEddystoneServiceConfigParams(const EddystoneService::EddystoneParams_t *paramsP) 00038 { 00039 /* Avoid compiler warnings */ 00040 (void) paramsP; 00041 00042 /* Do nothing... */ 00043 return; 00044 } 00045 #endif /* #ifdef TARGET_NRF51822 */
Generated on Tue Jul 12 2022 19:55:16 by
![doxygen](doxygen.png)