Skip to content

Commit

Permalink
Merge pull request #26 from trombik/doc-fix
Browse files Browse the repository at this point in the history
doc: the argument for esp_wireguard_* is a pointer, not struct
  • Loading branch information
trombik authored Jun 30, 2022
2 parents 111b8c6 + eaadeef commit 84f11eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ err = esp_wireguard_init(&wg_config, &ctx);

/* start establishing the link. after this call, esp_wireguard start
establishing connection. */
err = esp_wireguard_connect(ctx);
err = esp_wireguard_connect(&ctx);

/* after some time, see if the link is up. note that it takes some time to
establish the link */
err = esp_wireguardif_peer_is_up(ctx);
err = esp_wireguardif_peer_is_up(&ctx);
if (err == ESP_OK) {
/* the link is up */
else {
Expand Down

0 comments on commit 84f11eb

Please sign in to comment.