Example C source where secure https client and non-secure TCP/IP client coexist

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

cross mob
YaSe_4616256
Level 2
Level 2
10 replies posted 5 replies posted 5 questions asked

<My situation>

I need to develop one software which supports both https(TLS) client and TCP client(non-TLS/non-https) facilities. It must work on CY8CKIT-062-WiFiBT with Modus Toolbox.

Now, I'm developing upper application layer on CYW94343WWCD1_EVB with WICED.
In this development, the following two C sample sources was useful. And I made the two coexist.
WICED-Studio-6.4\43xxx_Wi-Fi\apps\snip\httpbin_org\httpbin_org.c
WICED-Studio-6.4\43xxx_Wi-Fi\apps\snip\tcp_client_powersave\tcp_client_powersave.c

It would be nice if an API compatible with the API used in these samples would be supported on CY8CKIT-062-WiFiBT with Modus Toolbox, but I understand that I can't hope for it.
So I'm looking for appropriate sample that is as simple and readable as possible, and similar to the sample above.

<Question/Request>
Please introduce the similar simple C example source for porting upper layer of both https(TLS) client and TCP client(non-TLS/non-https) software which works on CY8CKIT-062-WiFiBT with Modus Toolbox.

0 Likes
1 Solution
RaktimR_11
Moderator
Moderator
Moderator
500 replies posted 250 replies posted 100 replies posted

Hi,

We don't have such example available as of now for Modus Toolbox 2.0. It is definitely a part of our roadmap and will be included in future where http-client middleware and corresponding code example will be made available.

As of today, we have a tcp_client, both secure and non-secure example available for you to begin with.

GitHub - cypresssemiconductorco/mtb-example-anycloud-secure-tcp-client: This code example demonstrat...

GitHub - cypresssemiconductorco/mtb-example-anycloud-tcp-client: This code example demonstrates impl...

If you are constrained for time, you can either try to use the httpd from lwIP or port the WICED http_client stack to Modus and give it a try. Since MTB was built around keeping this sort of flexibility in mind, my guess would be that it won't be a huge effort.

View solution in original post

2 Replies
RaktimR_11
Moderator
Moderator
Moderator
500 replies posted 250 replies posted 100 replies posted

Hi,

We don't have such example available as of now for Modus Toolbox 2.0. It is definitely a part of our roadmap and will be included in future where http-client middleware and corresponding code example will be made available.

As of today, we have a tcp_client, both secure and non-secure example available for you to begin with.

GitHub - cypresssemiconductorco/mtb-example-anycloud-secure-tcp-client: This code example demonstrat...

GitHub - cypresssemiconductorco/mtb-example-anycloud-tcp-client: This code example demonstrates impl...

If you are constrained for time, you can either try to use the httpd from lwIP or port the WICED http_client stack to Modus and give it a try. Since MTB was built around keeping this sort of flexibility in mind, my guess would be that it won't be a huge effort.

Dear RaktimR_11,

Thank you for your message. It was very helpful.

I'll consider.

0 Likes