Skip to main content
Slh
Senior
July 1, 2019
Question

Read a file from Web-Address

  • July 1, 2019
  • 2 replies
  • 748 views

Hello forum,

Is it possible to read a file from a website (e.g www.WebSiteName.com/file.txt) with STM32?

I'm going to read data through the board B-L475E-IoT with access to internet. With this Board i can to send the data to the Cloud (Microsoft Azure IoT Central) with "MQTT Protocol" and these data are processed via Cloud-Processor and then available at a web address in file-format. How can i get access to this web-address through my board and read the data?

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
July 1, 2019

Use HTTP GET​

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Slh
SlhAuthor
Senior
July 2, 2019

That is correct. When I try to read the data from the website, I use HTTP. But my problem is how can I implement this protocol (maybe without CSS, Javascript, ...) in STM32.

Ozone
Principal
July 1, 2019

Or FTP/TFTP.

Remember that the STM32 side needs to implement the according ethernet-based protocol.