An application to log WiFi SSIDs for position lookup testing
Dependencies: C027_Support SWO mbed-rtos mbed picojson
Fork of lpc4088_ebb_ublox_Cellular_PubNubDemo_rtos by
DeviceConfiguration.h
00001 #pragma once 00002 00003 #include <stddef.h> 00004 #include <stdint.h> 00005 00006 #define DEVICE_CONFIGURATION_SIZE 8 00007 00008 class DeviceConfiguration 00009 { 00010 public: 00011 DeviceConfiguration(); 00012 ~DeviceConfiguration(); 00013 00014 bool read(const char*); 00015 bool write(char*, size_t); 00016 00017 bool set(const char*, const char*); 00018 const char * get(const char*); 00019 bool unset(const char*); 00020 bool has(const char*); 00021 void clear(); 00022 00023 protected: 00024 struct KeyValue { 00025 char *key; 00026 char *value; 00027 }; 00028 00029 KeyValue * search(const char*); 00030 00031 private: 00032 KeyValue _items[DEVICE_CONFIGURATION_SIZE]; 00033 };
Generated on Sun Jul 17 2022 02:39:36 by 1.7.2