Skip to content

Commit 4bf4fd7

Browse files
author
Amanda Butler
authored
Merge pull request #1246 from maciejbocianski/fix_tls_socket_example
update tls socket example to latests APIs
2 parents c288587 + 2462d47 commit 4bf4fd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/security/tls_tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ if (result != 0) {
127127
}
128128

129129
printf("Connecting to os.mbed.com\n");
130-
result = socket->connect("os.mbed.com", 443);
130+
result = socket->connect(SocketAddress("os.mbed.com", 443));
131131
if (result != 0) {
132132
printf("Error! socket->connect() returned: %d\n", result);
133133
return result;

0 commit comments

Comments
 (0)