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
device/DeviceConfiguration.h
- Committer:
- rosterloh84
- Date:
- 2015-02-15
- Revision:
- 1:cac9b2960637
File content as of revision 1:cac9b2960637:
#pragma once
#include <stddef.h>
#include <stdint.h>
#define DEVICE_CONFIGURATION_SIZE 8
class DeviceConfiguration
{
public:
DeviceConfiguration();
~DeviceConfiguration();
bool read(const char*);
bool write(char*, size_t);
bool set(const char*, const char*);
const char * get(const char*);
bool unset(const char*);
bool has(const char*);
void clear();
protected:
struct KeyValue {
char *key;
char *value;
};
KeyValue * search(const char*);
private:
KeyValue _items[DEVICE_CONFIGURATION_SIZE];
};
Richard Osterloh
