Skip to content
This repository was archived by the owner on Jun 8, 2021. It is now read-only.

Commit 12b55cf

Browse files
Add set_hostname call
1 parent ac80914 commit 12b55cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ int main(void)
7373
return result;
7474
}
7575

76+
socket->set_hostname("ifconfig.io");
77+
7678
result = socket->set_root_ca_cert(cert);
7779
if (result != NSAPI_ERROR_OK) {
7880
printf("Error: socket->set_root_ca_cert() returned %d\n", result);

0 commit comments

Comments
 (0)