Hello,
I am trying to build the official example:
https://github.com/ARMmbed/mbed-os-example-tls/tree/master/tls-client.
i am getting error in the: HelloHttpsClient.cpp file.
Compile [ 2.0%]: main.cpp
Compile [ 2.1%]: HelloHttpsClient.cpp
[Error] HelloHttpsClient.cpp@113,44: too many arguments to function call, expected single argument ‘address’, have 2 arguments
[Warning] HelloHttpsClient.cpp@182,38: format specifies type ‘unsigned long’ but the argument has type ‘std::uint32_t’ (aka ‘unsigned int’) [-Wformat]
[ERROR] .\HelloHttpsClient.cpp:113:44: error: too many arguments to function call, expected single argument ‘address’, have 2 arguments
Blockquote
if ((ret = socket.connect(server_addr, server_port)) != NSAPI_ERROR_OK) {
./mbed-os/connectivity/netsocket/include\netsocket/TCPSocket.h:63:19: note: 'connect' declared here
nsapi_error_t connect(const SocketAddress &address) override;
^
.\HelloHttpsClient.cpp:182:38: warning: format specifies type 'unsigned long' but the argument has type 'std::uint32_t' (aka 'unsigned int') [-Wformat]
"\n%s\n", flags, gp_buf);
^~~~~
1 warning and 1 error generated.
> Blockquote
I am new to C++. I get the same error while using COMPILER. I have windows 10 machine, and i use MBED STUDIO for development. i use NUCLEO-F767ZI as target.
please help where the syntax error is ??
![Capture|690x370](upload://pHMyh5S4qJHmoJSeNQxyci7OHnW.jpeg)