Skip to content

string sensor_type #4

@carterb23

Description

@carterb23

Hi all,

I was wondering whether string type sensors are supported?

From here it looks like yes:

struct sensor {

char *type;     ///< [integer, float, boolean, timestamp, discrete, address, string]

whereas not from here:

/**********************************************************************/

/**********************************************************************/
#define KATCP_SENSOR_INVALID (-1)
#define KATCP_SENSOR_INTEGER  0 
#define KATCP_SENSOR_BOOLEAN  1
#define KATCP_SENSOR_DISCRETE 2
#define KATCP_SENSOR_LRU      3

#ifdef KATCP_USE_FLOATS
#define KATCP_SENSOR_FLOAT    4
#define KATCP_SENSORS_COUNT   5
#else
#define KATCP_SENSORS_COUNT   4
#endif

I checked the sources but it is not clear to me whether yes/no?!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions