fix: rename uuid property to id
add: WIP discovery stuff
This commit is contained in:
parent
074c5c5750
commit
d679d99a92
6 changed files with 23 additions and 67 deletions
models
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue