Thanks for the video. Will you be able to share the source code / the entire project ?
@Theo005-k5eАй бұрын
Of course, check the description now
@sanjaydalvi6635Ай бұрын
@@Theo005-k5e thank you
@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Ай бұрын
why not use an ethernet interface directly from the board?
@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Ай бұрын
@@Theo005-k5e oh, okey I see. how about using the ethernet interface of the microcontroller, and making a webserver without Mongoose
@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Ай бұрын
@@Theo005-k5e yes, it only controls the LED and displays the sensor reading results
@Theo005-k5eАй бұрын
@@HarisMaulanaID actually i have a similar video on this:kzbin.info/www/bejne/d5q9aqqZptZshMUsi=VWfAEK-vLzmwbkW9
@cristianjulianrojassierra85562 ай бұрын
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-k5e2 ай бұрын
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