Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

string sensor_type #4

Open
carterb23 opened this issue Nov 25, 2021 · 0 comments
Open

string sensor_type #4

carterb23 opened this issue Nov 25, 2021 · 0 comments

Comments

@carterb23
Copy link

carterb23 commented Nov 25, 2021

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?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant