10 #define String std::string
27 OME_GROUP_WIFI_SETUP = 202,
30 OME_FLAG_BONJOUR = 0x0100,
32 OME_FLAG_HUNDREDTHS = 0x0200,
39 EOmEepromFieldType type = OME_TYPE_STRING;
43 const char *label = 0;
44 const char *description = 0;
55 OmEepromField *addField(
const char *fieldName, EOmEepromFieldType type, uint8_t length,
int omeFlags,
const char *label);
57 void begin(
const char *signature =
"x");
60 bool get(
const char *fieldName,
void *valueOut,
int valueLength = -1);
61 bool put(
const char *fieldName,
const void *value,
int valueLength = -1);
71 char *
addString(
const char *fieldName, uint8_t length);
77 char *
addString(
const char *fieldName, uint8_t length,
int omeFlags,
const char *label);
79 int8_t *addInt8(
const char *fieldName,
int omeFlags = 0,
const char *label = NULL);
80 int16_t *addInt16(
const char *fieldName,
int omeFlags = 0,
const char *label = NULL);
81 int32_t *addInt32(
const char *fieldName,
int omeFlags = 0,
const char *label = NULL);
83 void addBytes(
const char *fieldName, uint8_t length,
int omeFlags = 0,
const char *label = NULL);
85 void set(
const char *fieldName, String stringValue);
86 void set(
const char *fieldName, int32_t intValue);
87 bool set(
const char *fieldName,
int first,
int count, uint8_t *bytes);
89 String getString(
const char *fieldName);
90 void setString(
const char *fieldName, String value);
91 int getInt(
const char *fieldName);
92 void getBytes(
const char *fieldName,
int first,
int count, uint8_t *bytes);
93 uint8_t getByte(
const char *fieldName,
int index);
97 const char *getFieldName(
int ix);
98 int getFieldLength(
int ix);
99 int getFieldType(
int ix);
110 bool verbose =
false;
114 std::vector<OmEepromField> fields;
115 bool didBegin =
false;