Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 9 months ago.
index.html in mbed
Hi all, I want to ask that is there any method to show the basic html page on mbed. I know it is possible as avnet wi-go offers a webpage which offers a basic web page to control leds and sensor values.
I need to implement similar kind of thing on k64z.
Thanks in advance,
Zain
1 Answer
9 years, 9 months ago.
This one might be fairly easy to adapt to return a basic HTML page: http://mbed.org/users/hsgw/code/HTTPServer_echoback/
I am planning to make a lightweight lib which can serve a few pages and handle return arguments (so you can set for example color of RGB led via webpage), but that is going to take probably a week or so :)
I have used this code, and it is working fine. actually I want a basic html page as well. with some buttons and text boxes
posted by 01 Sep 2014You can look around the internet for some sample HTML code, but that won't help you that much currently: Yes it will give you an html page with some buttons, but I assume you also want to be able to read that back. And that needs to be handled on the mbed, and that requires significantly more code.
That library I will make will support this. I will send you a PM when I got something you can test (I will primarily test it on a CC3000, so someone testing it on ethernet can't hurt), but before that it doesn't really help you to have buttons which you cannot use.
posted by 01 Sep 2014Btw I am going to have a look first at: http://mbed.org/users/WiredHome/code/SW_HTTPServer/, maybe that is also what I am looking for (roughly, it is more than I want, but if it works).
posted by 02 Sep 2014
thank you Erik !! I am waiting for your work !!
posted by zain aftab 02 Sep 2014