Jump to content
Sign in to follow this  
Goddur

Buttons HTML Web server Wemos mini D1 board

Recommended Posts

I am not a programmer just a hobbyist trying to get this working.

Successfully loaded sketch onto Wemos mini D1 the sketch allows this device to function as a web server. 

When I pull up the web server it shows the lines asking if I would like to turn on/off the relay:

 

Relay is now: Disengaged (OFF)
Click here to engage (Turn ON) the relay. 
Click here to disengage (Turn OFF) the relay.

 

This is great but would like to replace the lines shown with buttons. 

Does anyone have any idea how I would go about this?

Keeping in mind I am using Arduino IDE with C++.

Here is the code and props to the original coders.

https://pastebin.com/edit/E93HXBBW

Share this post


Link to post
Share on other sites

Seeing as it's outputting an HTML page in the browser, you can use CSS to style the links to look like buttons. The links that it is providing will only work inside your local network because it is using a local IP address.

I can't see the pastebin link because it's asking me to create an account. If the code is not too long, you can use the codeblock button to paste it here.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×