Commit df882d04 authored by Michael Tross's avatar Michael Tross

change model and controller naming to comply with configurator conventions

parent 6adf67b2
......@@ -217,7 +217,7 @@ int main(int argc __attribute__((unused)), char **argv __attribute__((unused)))
char hostname[HOST_NAME_MAX];
gethostname(hostname, HOST_NAME_MAX);
char servicename[HOST_NAME_MAX + 32];
strcpy(servicename, "NetAtmo @");
strcpy(servicename, "NetAtmo Weather Station Controller @");
strcat(servicename, hostname);
dsvdc_t *handle = NULL;
......
......@@ -407,17 +407,17 @@ void vdc_getprop_cb(dsvdc_t *handle, const char *dsuid, dsvdc_property_t *proper
strcat(info, buffer);
dsvdc_property_add_string(property, name, info);
} else if (strcmp(name, "modelUID") == 0) {
dsvdc_property_add_string(property, name, "NetAtmo Weather Station");
} else if (strcmp(name, "vendorId") == 0) {
} else if (strcmp(name, "oemGuid") == 0) {
} else if (strcmp(name, "modelGuid") == 0) {
dsvdc_property_add_string(property, name, "0.0.1.0");
} else if (strcmp(name, "implementationId") == 0) {
dsvdc_property_add_string(property, name, "NetAtmo Weather Station");
} else if (strcmp(name, "oemGuid") == 0) {
dsvdc_property_add_string(property, name, "0.0.1.1");
} else if (strcmp(name, "modelUID") == 0) {
dsvdc_property_add_string(property, name, "Weather Station");
} else if (strcmp(name, "vendorId") == 0) {
dsvdc_property_add_string(property, name, "michael@tross.org");
} else if (strcmp(name, "modelGuid") == 0) {
dsvdc_property_add_string(property, name, "NetAtmo Weather Station");
} else if (strcmp(name, "name") == 0) {
char info[256];
......@@ -426,7 +426,12 @@ void vdc_getprop_cb(dsvdc_t *handle, const char *dsuid, dsvdc_property_t *proper
dsvdc_property_add_string(property, name, info);
} else if (strcmp(name, "model") == 0) {
dsvdc_property_add_string(property, name, "NetAtmo Weather Station by mtr");
char hostname[HOST_NAME_MAX];
gethostname(hostname, HOST_NAME_MAX);
char servicename[HOST_NAME_MAX + 32];
strcpy(servicename, "NetAtmo Weather Station Controller @");
strcat(servicename, hostname);
dsvdc_property_add_string(property, name, servicename);
} else if (strcmp(name, "capabilities") == 0) {
dsvdc_property_t *reply;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment