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 Pavel,
Thanks for the supporting. So can you share the link for the sample SDK code. Which having board as client and pc act as a server.
BR
Nithin
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, my name is Pavel, and I will be supporting your case, I reviewed your request, and the example available by NXP is in the SDK.
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,
Can you share the link for K64.not able to find.
BR
Nithin N
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, I am afraid there is not a demo available in the SDK as you require, but you could try to search for examples based on the PHY LAN8720A.
Best regards,
Pavel
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, when you put a dynamic value on your page is easier to refresh the page, you need to put a command line in the HTTP page buffer.
Best regards,
Pavel
Hello,
Sorry, I didn't understand.to send dynamic value I need to use any particular function?
BR
Nithin
Hello, sorry I have misspelled, I do not have a lot of knowledge of HTTP, but I mean to modify the buffer of HTML and refresh the page with the HTML command.
Best regards,
Pavel
Hello,
Thanks for the reply. If demo code board act as a server. In the code where they initialize client and server configuration.
BR
Nithin
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
Hello,
if I need to send some adc value to server. Am using LTC2335 adc. Interface this adc is there any sample code available in sdk?.
BR
Nithin
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