2020-05-03 01:45 PM
Hi,
I am trying to create a little http client that creates http get and/or post requests. The main goal of the application is to get weather information from a weather api. In college i learned a little bit of the raw api, but from what i read on the internet i cant use raw api with freertos...
I am no expert at stm32 programming, bit i know a little bit of it.
I don't kknow where i should start. Should i use the netconn api? And how do you create a http client with the netconn api? Is there any example of a http client? The information i read wasn't clear to me.
Many thanks!
Elias
2020-05-04 02:15 AM
For beginners IP stacks and HTTP is not the best thing to start with... It's better to first learn things like USART really well. Implement it with interrupts/DMA, FIFO buffer in RAM and asynchronous processing and message parsing. Do it thorougly and you'll learn a lot about MCU and software architecture! Cortex-M7 has cache memory - do not turn on D-cache until you learn how to deal with it.
lwIP's RAW API is perfectly usable with RTOS and the best option overall, if you respect the architectural and multithreading requirements. You can try using a HTTP client provided by lwIP source.
And be warned...
2020-05-04 03:42 AM
Thank you for the fast reply!
Since i'm just a beginner, i'm trying to learn everything about my stm32f746g discovery. In school we learned the lwip tcp/ip stack but not with freertos. Do you know a place where i can learn stm32 programming by any chance? Or somewhere i can find tutorials and examples, because if i google it, i only find the basics and tutorials on how to start a project. Not the advanced stuff...