Editing constants using a dynamic web page

01 Feb 2010

Does anyone have an idea of how to host a webpage on the MBED on witch a user viewing that page can enter a constant and save it in a manner witch the mbed can uses in the code.  IE: the web page can turn on different sections of code to change the operations and serve as a GUI.

01 Feb 2010 . Edited: 01 Feb 2010

You can use one of 2 scenarios:

 

Scenario 1

A static HTML page with a form that submits (POST) to a second page. A second page can be a dynamic page that will parse the posted data. I did an example code for the dynamic page (but no parsing) here: pub_iva2k_HTTPDynamicPage. You'll need to do URI parsing.

 

Scenario 2

A static HTML page with a javascript that uses RPC. RPC is self-contained and can save, act, or return values. I did an example code for RPC class accessible over HTTP here: pub_iva2k_ethrpc. Simon posted AJAX (javascript) RPC example linked from this thread: http://mbed.org/forum/mbed/topic/234. Javascript goes into the HTML page on MBED, RPC goes into the code.

01 Feb 2010

Thanks I will give is a try soon.