Golioth Zephyr SDK
settings.h File Reference
#include <stdint.h>
#include <zephyr/net/coap.h>

Go to the source code of this file.

Data Structures

struct  golioth_settings_value
 A setting value. More...
 
struct  golioth_settings
 Settings state data, placed in struct golioth_client. More...
 

Typedefs

typedef enum golioth_settings_status(* golioth_settings_cb) (const char *key, const struct golioth_settings_value *value)
 Callback for an individual setting. More...
 

Enumerations

enum  golioth_settings_status {
  GOLIOTH_SETTINGS_SUCCESS = 0 , GOLIOTH_SETTINGS_KEY_NOT_RECOGNIZED = 1 , GOLIOTH_SETTINGS_KEY_NOT_VALID = 2 , GOLIOTH_SETTINGS_VALUE_FORMAT_NOT_VALID = 3 ,
  GOLIOTH_SETTINGS_VALUE_OUTSIDE_RANGE = 4 , GOLIOTH_SETTINGS_VALUE_STRING_TOO_LONG = 5 , GOLIOTH_SETTINGS_GENERAL_ERROR = 6
}
 Enumeration of Settings status codes. More...
 
enum  golioth_settings_value_type {
  GOLIOTH_SETTINGS_VALUE_TYPE_UNKNOWN , GOLIOTH_SETTINGS_VALUE_TYPE_BOOL , GOLIOTH_SETTINGS_VALUE_TYPE_FLOAT , GOLIOTH_SETTINGS_VALUE_TYPE_STRING ,
  GOLIOTH_SETTINGS_VALUE_TYPE_INT64
}
 Different types of setting values. More...
 

Functions

int golioth_settings_register_callback (struct golioth_client *client, golioth_settings_cb callback)
 Register callback for handling settings. More...
 
int golioth_settings_observe (struct golioth_client *client)
 Observe for Settings. More...