Compilation Error - 'TLSSocker' does no name a type

Hi,

I would like to run the program on my device, Numaker-IoT-M487, but I got a compilation error.
This program are expected to establish a MQTT connection to the AWS IoT core.
The “AWSClient.h” was included at the beginning of the program and this header file is inside mbed-client-for-aws SDK.
I got the following error while compiling.

After that, I changed my “CMakeLists.txt” as the following.

target_include_directories(${APP_TARGET}
    PUBLIC
        ${CMAKE_CURRENT_SOURCE_DIR}/mbed-client-for-aws/include/AWSClient
)

target_sources(${APP_TARGET}
    PRIVATE
        main.cpp
        mbed-client-for-aws/source/AWSClient.cpp
)

target_link_libraries(${APP_TARGET} 
    mbed-os
    mbed-netsocket
    mbed-cellular
    mbed-client-for-aws
)

It didn’t work and I still recieved the same error.

The example project of AWS MQTT from Nuvoton are not suit for my comming development, therefore I would like to run the Mbed official example my device.

Do anyone have related experience can share with me?
I will really appreciate for suggestions.

Hi,

This is probably useful topic:

1 Like

Hi @MACRUM ,

Much appreciated for your sharing!
It is exactly what I need and the error was fixed.