Skip to content

Commit a9bd4a5

Browse files
committed
client: allow custom identity instead of using mac address by default
1 parent 24867ca commit a9bd4a5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

main/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,8 @@ app_main(void) {
366366
char *device_type = running_app_info.project_name;
367367

368368
/* Initialize mender-client */
369-
mender_client_config_t mender_client_config = { .mac_address = mac_address,
369+
mender_keystore_t identity[] = { { .name = "mac", .value = mac_address }, { .name = NULL, .value = NULL } };
370+
mender_client_config_t mender_client_config = { .identity = identity,
370371
.artifact_name = artifact_name,
371372
.device_type = device_type,
372373
.host = NULL,

0 commit comments

Comments
 (0)