- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
thanks a lot.
Solved! Go to Solution.
- Labels:
-
ispn:39620:1:0
-
l1:314:1:0
-
PSoC6MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is no .cyignore file in mtb_shared\http-client project. (Every other project in mtb_shared directory have a .cyignore file)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is no .cyignore file in my application(AnyCloud_TCP_Client) folder. Is there anything wrong in my application configuration?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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