Skip to content

Commit

Permalink
client: allow custom identity instead of using mac address by default
Browse files Browse the repository at this point in the history
  • Loading branch information
joelguittet committed May 27, 2024
1 parent 24867ca commit a9bd4a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,8 @@ app_main(void) {
char *device_type = running_app_info.project_name;

/* Initialize mender-client */
mender_client_config_t mender_client_config = { .mac_address = mac_address,
mender_keystore_t identity[] = { { .name = "mac", .value = mac_address }, { .name = NULL, .value = NULL } };
mender_client_config_t mender_client_config = { .identity = identity,
.artifact_name = artifact_name,
.device_type = device_type,
.host = NULL,
Expand Down

0 comments on commit a9bd4a5

Please sign in to comment.