ARMmbed / ARMmbed/mbed-os-example-for-aws

TLSScoket issue in Nuvoton-IoTM487

Open
#46 4 comments 0 reactions 0 assignees View on GitHub
IOTOSM-4067 Jira status: OPEN mirrored
Dominant language
C++
Stars
14
Forks
20
PR merge metrics
No merged PRs in 30d

Description

Hi, this project i configured it for IoT-M487 kit from nuvoton in mbedapp.json but is throwing error for tlssocket as shown below

**"Compile [ 1.9%]: AWSClient.cpp
[Error] AWSClient.h@52,5: unknown type name 'TLSSocket'; did you mean 'TCPSocket'?
[Error] AWSClient.cpp@271,28: undeclared identifier 'TLSSocket' in destructor name
[Error] AWSClient.cpp@272,34: unknown type name 'TLSSocket'; did you mean 'TCPSocket'?
[Error] AWSClient.cpp@275,27: no member named 'set_hostname' in 'TCPSocket'
[Error] AWSClient.cpp@278,27: no member named 'set_client_cert_key' in 'TCPSocket'
[Error] AWSClient.cpp@284,27: no member named 'set_ca_chain' in 'TCPSocket'
[ERROR] In file included from .\mbed-client-for-aws\source\AWSClient.cpp:26:
./mbed-client-for-aws/include/AWSClient\AWSClient.h:52:5: error: unknown type name 'TLSSocket'; did you mean 'TCPSocket'?
TLSSocket socket;
^~~~~~~~~
TCPSocket
./mbed-os/connectivity/netsocket/include\netsocket/TCPSocket.h:33:7: note: 'TCPSocket' declared here
class TCPSocket : public InternetSocket {
^
.\mbed-client-for-aws\source\AWSClient.cpp:271:28: error: undeclared identifier 'TLSSocket' in destructor name
networkContext.socket.~TLSSocket();
^~~~~~~~~
TCPSocket
.\mbed-client-for-aws\source\AWSClient.cpp:272:34: error: unknown type name 'TLSSocket'; did you mean 'TCPSocket'?
new (&networkContext.socket) TLSSocket();
^~~~~~~~~
TCPSocket
./mbed-os/connectivity/netsocket/include\netsocket/TCPSocket.h:33:7: note: 'TCPSocket' declared here
class TCPSocket : public InternetSocket {
^
.\mbed-client-for-aws\source\AWSClient.cpp:275:27: error: no member named 'set_hostname' in 'TCPSocket'
networkContext.socket.set_hostname(hostname);
~~~~~~~~~~~~~~~~~~~~~ ^
.\mbed-client-for-aws\source\AWSClient.cpp:278:27: error: no member named 'set_client_cert_key' in 'TCPSocket'
networkContext.socket.set_client_cert_key(creds.clientCrt,
~~~~~~~~~~~~~~~~~~~~~ ^
.\mbed-client-for-aws\source\AWSClient.cpp:284:27: error: no member named 'set_ca_chain' in 'TCPSocket'
networkContext.socket.set_ca_chain(&rootCA);
~~~~~~~~~~~~~~~~~~~~~ ^
6 errors generated."**

is this project support this target or how I can resolve this issue?

Contributor guide

Open the contributing guide

Research direction

Start with mbedapp.json and the TLSSocket references in AWSClient.h and AWSClient.cpp. Check whether the Nuvoton-IoTM487 target provides the required TLS socket API and determine whether the result is a configuration fix or unsupported-target limitation; document the confirmed resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, cpp
Domain
cloud, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.