Hi,
My project I need to send data through the HTTPS protocol. To understand this code i gone through the lwip_httpsrv_mbedTSL_bm demo code. This application demonstrates an HTTPS Server
set up on lwIP TCP/IP and the mbedTLS stack with bare metal. The user uses an Internet browser to send an https request for connection. The board acts as an HTTPS server and sends a Web page back to the PC.
For my project the board acts as an HTTPS client and pc as server. For this application is there any demo code is available. Reference is using LPCXpresso5468 board only.
已解决! 转到解答。
Hello, there is no driver for that device, but the communication is SPI maybe you could find the driver and mount in the SPI example in the SDK.
Best regards,
Pavel
Hello, on this page you can search the SDK Welcome | MCUXpresso SDK Builder (nxp.com).
You will find all the examples available for that board.
Best regards,
Pavel
Hello Pavel,
I have gone through all the lwip demos are under Lpcxpresso 54628 board lwip examples folder. In that lwip_httpssrv_mbedTLS_bm and lwip_httpssrv_mbedTLS_freertos, these two codes only for https, remaining all are for other protocols.
As I mentioned in previous message these two codes Lpcxpresso 54628 board act as a https server and pc as a client. but my requirement is that board should act as client and pc as a server. For this application can I get any API?
Hello, I am afraid this application wasn't made, I don't know the reason there is an example in the k64, maybe you could understand the functionality, and for a tool could you check the Hercules setup utility?
Best regards,
Pavel
Hello, sorry I reviewed the SDK of the K64 and has the same example as server, could you elaborate further about your application? the server is where the page is allocated, and if you want the example as a client to connect to a PC for send telemetry the connection suggest is WebSocket or MQTT. I suggest review that protocols maybe are what you are looking for, and this example is available for your board.
Best regards,
Pavel
Hello
Hello,
Thanks for the replay. LPCXpresso54628_lwip_httpssrv_mbedTLS_bm demo code, board is sending the static web page to pc. if I need to send dynamic values. How can I do that in this code?
BR
Nithin N
Hello, I suggest you can try to review the echo example and then try to implement the server. I recommend reviewing the flow chart about the server vs the client.
Best regards,
Pavel
Hello,
Thanks for the replay. Now I established the tcp connection using Lwip_tcpecho code.
Now if I want to send some data to server how can I do that? Using this code.
Can I get the link for demo code lwip_httpscli_mbedTLS.?
This code can use LPCXpresso54628 board?
BR
Nithin
Hello, I do not know about that example maybe you can port if the board that was made is similar to the LPC54628, I reviewed in the SDK and that example is not available.
I suggest reviewing more information about sockets in C to understand how to send data.
Best regards,
Pavel
Hello, I do not know about that example maybe you can port if the board that was made is similar to the LPC54628, I reviewed in the SDK and that example is not available.
I suggest review more information about sockets in C to understand how to send data.
Best regards,
Pavel