Slide 20
Slide 20 text
手順
#include
static WireGuard wg;
char private_key[] = "{YOUR [Interface] PrivateKey}";
IPAddress local_ip(192, 168, 200, 254); // [Interface] Address
char public_key[] = "{YOUR [Peer] PublicKey}";
char endpoint_address[] = "{YOUR [Peer] Endpoint}";
int endpoint_port = 11010;
configTime(9 * 60 * 60, 0, "ntp.jst.mfeed.ad.jp", "ntp.nict.jp", "time.google.com");
delay(3000); // Wait for adjust
wg.begin(local_ip, private_key, endpoint_address, public_key, endpoint_port);