A
Arduino3mo ago
Tessai

Arduino R4 wifi webserver

Hello, I'm fairly new to software development. Most of my experience is with B&R automation using structured text. I am using Platform.IO in VSC. I have been wondering if i can use the Arduino R4 to set up a intranet site hosted on it using HTML or PHP with proper "live" input/output variables that are mapped to the variables in the actual C++ program? Basically having a seperate file, like html/php along the regular main.cpp I have found the examples on the Arduino website for the R4 Wifi, but that one seems like not quite what I am looking for
4 Replies
DarwinWasWrong
DarwinWasWrong3mo ago
Yes, sort of... there are html server libraries and you can have html and "inject" values from the program into the web page
DarwinWasWrong
DarwinWasWrong3mo ago
Tech Talkies
YouTube
Uno R4 webserver | Detailed guide and code | Beginner friendly
A detailed guide on how to setup a web server on the Arduino Uno R4 WiFi board. In this example, we control a slider to move a slider on the built-in LED matrix. We use buttons to turn an LED bulb on and off. Previous Video: https://www.youtube.com/watch?v=mucync6mKuk Code: https://github.com/TechTalkies/YouTube/tree/main/35_Uno_R4_WebServer ...
DarwinWasWrong
DarwinWasWrong3mo ago
you might need to explain a bit what you want to do with what sort of vaiables
Tessai
TessaiOP3mo ago
Thanks for the tip! I'll have a look So i just checked it, it seems like pretty much what i need, but in this example it does not seem like there is an example for sending variables from the actual logic to the webpage. Can i just inject the values into these <var> javascript variables at the end using the client.print function?

Did you find this page helpful?