bmsd/rdconfig.h

Sun, 05 Jan 2020 11:42:02 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Sun, 05 Jan 2020 11:42:02 +0100
changeset 578
e75ce5bbda73
parent 0
033898178630
permissions
-rw-r--r--

Changed the interface from the iSpindels to be the same as other devices. A webpage converts each call to two standard MQTT messages. The nodes MQTT message extended with an interval parameter. iSpindels now have a generated uuid made up from the chipid.

#ifndef	_RDCONFIG_H
#define	_RDCONFIG_H

#define S(x) (x)?(x):"(null)"

typedef struct _key_list {
   char                *key;
   int                 (*prc)(char **);
   char                **dest;
} key_list;


void killconfig(void);
int  rdconfig(void);
int  wrconfig(void);


#endif

mercurial