Ethernet Web Server with STM32 & W5500 Tutorial | Mongoose WS API

  Рет қаралды 1,150

Embedded Here

Embedded Here

Күн бұрын

Пікірлер: 13
@sanjaydalvi6635
@sanjaydalvi6635 Ай бұрын
Thanks for the video. Will you be able to share the source code / the entire project ?
@Theo005-k5e
@Theo005-k5e Ай бұрын
Of course, check the description now
@sanjaydalvi6635
@sanjaydalvi6635 Ай бұрын
@@Theo005-k5e thank you
@sanjaydalvi6635
@sanjaydalvi6635 Ай бұрын
@@Theo005-k5e 1. 3. Your github code calls fn() (mg_http_listen(&mgr, "0.0.0.0:80",fn,NULL)) instead of http_ev_handler(). I have replaced it by http_ev_handler() as seen in your video. 2. Why did you include two .c files "mongoose_impl.c" "mongoose_fs.c" in main.c, when they could have got compiled separately and got linked by stm32cube ide. I did it that way. But then I got to another issue as below. 3. The function http_ev_handler() has been defined as static inside mongoose_impl.c, so calling it from main.c did give me errors. I resolved it by defining the function non static and included the extern declaration of the same in main.c. The compiler compiles it properly now. Let me know your views on this. Hope you are OK with this lengthy comment.
@HarisMaulanaID
@HarisMaulanaID Ай бұрын
why not use an ethernet interface directly from the board?
@Theo005-k5e
@Theo005-k5e Ай бұрын
@@HarisMaulanaID because i wanted to show people that You can add an Ethernet interface to any microcontroller with Mongoose and also that was the board i had at hand haha
@HarisMaulanaID
@HarisMaulanaID Ай бұрын
@@Theo005-k5e oh, okey I see. how about using the ethernet interface of the microcontroller, and making a webserver without Mongoose
@Theo005-k5e
@Theo005-k5e Ай бұрын
@@HarisMaulanaID You mean using LwIP? It is a pain the butt to use that. As you saw in the video, I built the Dashboard without coding
@HarisMaulanaID
@HarisMaulanaID Ай бұрын
@@Theo005-k5e yes, it only controls the LED and displays the sensor reading results
@Theo005-k5e
@Theo005-k5e Ай бұрын
@@HarisMaulanaID actually i have a similar video on this:kzbin.info/www/bejne/d5q9aqqZptZshMUsi=VWfAEK-vLzmwbkW9
@cristianjulianrojassierra8556
@cristianjulianrojassierra8556 2 ай бұрын
I do the same as your video but it appears to me Description Resource Path Location Type multiple definition of `print_timeseries'; ./Core/Src/main.o:C:/Users/cristian/Desktop/parking-control-pro-app/parking-control-pro-app/Debug/../Core/Src/mongoose_impl.c:400: first defined here mongoose_impl.c /parking-control-pro-app/Core/Src line 400 C/C++ Problem Description Resource Path Location Type multiple definition of `print_struct'; ./Core/Src/main.o:C:/Users/cristian/Desktop/parking-control-pro-app/parking-control-pro-app/Debug/../Core/Src/mongoose_impl.c:339: first defined here mongoose_impl.c /parking-control-pro-app/Core/Src line 339 C/C++ Problem Description Resource Path Location Type multiple definition of `mongoose_poll'; ./Core/Src/main.o:C:/Users/cristian/Desktop/parking-control-pro-app/parking-control-pro-app/Debug/../Core/Src/mongoose_impl.c:681: first defined here mongoose_impl.c /parking-control-pro-app/Core/Src line 681 C/C++ Problem Description Resource Path Location Type multiple definition of `mongoose_init'; ./Core/Src/main.o:C:/Users/cristian/Desktop/parking-control-pro-app/parking-control-pro-app/Debug/../Core/Src/mongoose_impl.c:641: first defined here mongoose_impl.c /parking-control-pro-app/Core/Src line 641 C/C++ Problem Description Resource Path Location Type multiple definition of `mg_json_get_str2'; ./Core/Src/main.o:C:/Users/cristian/Desktop/parking-control-pro-app/parking-control-pro-app/Debug/../Core/Src/mongoose_impl.c:135: first defined here mongoose_impl.c /parking-control-pro-app/Core/Src line 135 C/C++ Problem Description Resource Path Location Type multiple definition of `glue_update_state'; ./Core/Src/main.o:C:/Users/cristian/Desktop/parking-control-pro-app/parking-control-pro-app/Debug/../Core/Src/mongoose_impl.c:437: first defined here mongoose_impl.c /parking-control-pro-app/Core/Src line 437 C/C++ Problem
@Theo005-k5e
@Theo005-k5e 2 ай бұрын
Hi Cristian! Judged by the errors, I assume the compiler compiling mongoose_impl.c twice, so just include mongoose_impl.c in the main file and exclude the mongoose_impl.c from build. Let me know if it works! PS also you can join my community(link in the description), you will get more access to me and I could help you better
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 114 МЛН
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 1,7 МЛН
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 16 МЛН
Device Web UI dashboard: STM32 :: CubeIDE :: Bare metal :: HTTP, Websocket, MQTT
22:21
Mongoose Networking Library
Рет қаралды 7 М.
Coding a Web Server in 25 Lines - Computerphile
17:49
Computerphile
Рет қаралды 350 М.
STM32 Ethernet - TCP Client with Mongoose WS API
22:48
Embedded Here
Рет қаралды 332
ESP8266 WebServer using STM32 HAL|| LED Control || Ring Buffer
8:58
ControllersTech
Рет қаралды 54 М.
Embedded Web Server #1: Mongoose Hello World
14:26
Mitch Davis
Рет қаралды 15 М.
STM32 UART DMA + IDLE Line | Receive Data of Unknown Size
12:34
Embedded Here
Рет қаралды 327
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 114 МЛН