Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
familytiger
Level 1
Level 1
First reply posted First question asked Welcome!

I use PSoC® 6 WiFi-BT Pioneer Kit (CY8CKIT-062-WiFi-BT), and IDE is ModusToolbox.

I want to use mbedtls and tcp, to develope a program using https client. Where can I find a runnable demo which have the similar featuure.

I have tried "Add Application" in ModusToolbox, but only find "AnyCloud_TCP_Client" and "AnyCloud_HTTPS_Server" demo. "AnyCloud_TCP_Client" just use tcp to connect a server without using mbedtls, and "AnyCloud_HTTPS_Server"  don't have a sample code using connect interface with mbedtls.

I alse tried using "Library Manager" to add "HTTP-Client" library, but that demo can not be compiled correct,  because of lack of "core_http_client.h" header file. 

familytiger_1-1626432067864.png

 

familytiger_0-1626432016360.png

 

thanks a lot.

0 Likes
1 Solution
Aditi_B
Moderator
Moderator
Moderator
500 replies posted 5 questions asked 250 replies posted

Hi,

There is nothing wrong if you don't have the .cyignore file. I did import the "AnyCloud_TCP_Client" application and tried to build it. I also faced the same errors but did manage to resolve them. Please add the following macros in the makefile of your application-

HTTP_DO_NOT_USE_CUSTOM_CONFIG

MQTT_DO_NOT_USE_CUSTOM_CONFIG

Because these macros were not defined in the makefile, the application was searching for a custom config file that is not by default present in the application's folder. You can add these macros in the "defines" in the makefile as follows-

DEFINES=$(MBEDTLSFLAGS) CYBSP_WIFI_CAPABLE CY_RETARGET_IO_CONVERT_LF_TO_CRLF CY_RTOS_AWARE HTTP_DO_NOT_USE_CUSTOM_CONFIG MQTT_DO_NOT_USE_CUSTOM_CONFIG

Let me know if you still face issues.

Thanks

Aditi

View solution in original post

0 Likes
5 Replies
Aditi_B
Moderator
Moderator
Moderator
500 replies posted 5 questions asked 250 replies posted

Hi,

Unfortunately, we don't have any demo example as per your application's requirement but you can definitely go ahead and include https client library in your AnyCloud TCP Client application and add your code. With regards to your compile error, can you please provide the .cyignore file of your application?

Thanks

Aditi

0 Likes

There is no  .cyignore file in mtb_shared\http-client project. (Every other project in mtb_shared directory have a .cyignore file)

familytiger_2-1626694737562.png

familytiger_1-1626694681950.png

 

0 Likes
lock attach
Attachments are accessible only for community members.
Aditi_B
Moderator
Moderator
Moderator
500 replies posted 5 questions asked 250 replies posted

Hi,

.cyignore file should be present in your application folder not in mtb_shared as provided in the attached snapshot. Can you check once in the application folder? Also, was the import of http_client library successful?

Thanks

Aditi

0 Likes
familytiger
Level 1
Level 1
First reply posted First question asked Welcome!

familytiger_0-1627191198488.png

There is no .cyignore file in my application(AnyCloud_TCP_Client) folder.  Is there anything wrong in my application configuration?

 

0 Likes
Aditi_B
Moderator
Moderator
Moderator
500 replies posted 5 questions asked 250 replies posted

Hi,

There is nothing wrong if you don't have the .cyignore file. I did import the "AnyCloud_TCP_Client" application and tried to build it. I also faced the same errors but did manage to resolve them. Please add the following macros in the makefile of your application-

HTTP_DO_NOT_USE_CUSTOM_CONFIG

MQTT_DO_NOT_USE_CUSTOM_CONFIG

Because these macros were not defined in the makefile, the application was searching for a custom config file that is not by default present in the application's folder. You can add these macros in the "defines" in the makefile as follows-

DEFINES=$(MBEDTLSFLAGS) CYBSP_WIFI_CAPABLE CY_RETARGET_IO_CONVERT_LF_TO_CRLF CY_RTOS_AWARE HTTP_DO_NOT_USE_CUSTOM_CONFIG MQTT_DO_NOT_USE_CUSTOM_CONFIG

Let me know if you still face issues.

Thanks

Aditi

0 Likes