fix: rename uuid property to id

add: WIP discovery stuff
This commit is contained in:
Tobias Reisinger 2020-02-29 10:23:44 +01:00
parent 074c5c5750
commit d679d99a92
6 changed files with 23 additions and 67 deletions

View file

@ -11,7 +11,7 @@ controller*
controller_create(void)
{
controller *result = malloc(sizeof(*result));
uuid_generate(result->uuid);
uuid_generate(result->id);
strcpy(result->name, "new emgauwa device");
result->command_port = 0;
@ -36,7 +36,7 @@ controller_debug(controller *cntrlr)
LOG_DEBUG("controller is NULL");
}
char uuid_str[37];
uuid_unparse(cntrlr->uuid, uuid_str);
uuid_unparse(cntrlr->id, uuid_str);
LOG_DEBUG("(1/4) %s @ %p", uuid_str, cntrlr);
LOG_DEBUG("(2/4) name: %s", cntrlr->name);
LOG_DEBUG("(3/4) relays: %3d", cntrlr->relay_count);