STM32H7 as TFTP Client
Earlier I implemented file transfer using TFTP in which my stm32 module was working as a server. But now I want to make it work as a TFTP client. Is there any example regarding TFTP client.
Earlier I implemented file transfer using TFTP in which my stm32 module was working as a server. But now I want to make it work as a TFTP client. Is there any example regarding TFTP client.
@Will5 I have gone through your post and I think you might be using udp_connect or some other function to connect to the TFTP server, where you have define the server IP address and the default port 69. If you are doing this in that case only you will find yourself where you are.
So the solution is to, create a pcb for you TFTP client, bind to it and set a receive callback. For the TFTP server you need one thing which is its IP address. Don't bind or connect to the TFTP serve using any function, about the port it is already defined as TFTP_PORT in tftp_opts.h file so you can use that.

Then just send the read request to the server. When the server replies back using a different port the receive callback will be called from there you will get the port of server and use it for further communication or file transfer.

Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.