Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/lib/support/bobot_server
diff options
context:
space:
mode:
Diffstat (limited to 'lib/support/bobot_server')
-rw-r--r--lib/support/bobot_server/bobot-server-http.lua211
-rw-r--r--lib/support/bobot_server/bobot-server-process.lua176
-rw-r--r--lib/support/bobot_server/bobot.pngbin10277 -> 0 bytes
-rw-r--r--lib/support/bobot_server/butia/butia.htm17
-rw-r--r--lib/support/bobot_server/butia/butia_http.lua32
-rw-r--r--lib/support/bobot_server/butia/command.htm36
-rw-r--r--lib/support/bobot_server/butia/describeButia.htm88
-rw-r--r--lib/support/bobot_server/butia/header.htm10
-rw-r--r--lib/support/bobot_server/butia/images/btar_dn.gifbin303 -> 0 bytes
-rw-r--r--lib/support/bobot_server/butia/images/btar_lft.gifbin279 -> 0 bytes
-rw-r--r--lib/support/bobot_server/butia/images/btar_rgt.gifbin283 -> 0 bytes
-rw-r--r--lib/support/bobot_server/butia/images/btar_up.gifbin312 -> 0 bytes
-rw-r--r--lib/support/bobot_server/butia/images/butiaRobot3.pngbin80308 -> 0 bytes
-rw-r--r--lib/support/bobot_server/butia/images/clase07.jpgbin20771 -> 0 bytes
-rw-r--r--lib/support/bobot_server/butia/sensors.htm40
-rw-r--r--lib/support/bobot_server/butia/view.htm10
-rw-r--r--lib/support/bobot_server/dumptemplate.txt11
-rw-r--r--lib/support/bobot_server/dumptemplate_descr.txt37
-rw-r--r--lib/support/bobot_server/dumptemplate_descr_row.txt20
-rw-r--r--lib/support/bobot_server/favicon.icobin1406 -> 0 bytes
-rw-r--r--lib/support/bobot_server/http-util.lua41
-rw-r--r--lib/support/bobot_server/indextemplate.txt16
22 files changed, 0 insertions, 745 deletions
diff --git a/lib/support/bobot_server/bobot-server-http.lua b/lib/support/bobot_server/bobot-server-http.lua
deleted file mode 100644
index efa239d..0000000
--- a/lib/support/bobot_server/bobot-server-http.lua
+++ /dev/null
@@ -1,211 +0,0 @@
-module(..., package.seeall);
-
-local bobot = require("bobot")
-
---local devices=devices
-local process = require("bobot-server-process").process
-local butia = require("butia/butia_http")
-local util = require("http-util")
-
-local parse_params = util.parse_params
-local load_template = util.load_file
-local find_page = util.find_page
-
---enable to cache in RAM
---[[
-local index_template=load_template('indextemplate.txt')
-local dump_template=load_template('dumptemplate.txt')
-local dump_template_descr=load_template('dumptemplate_descr.txt')
-local dump_template_descr_row=load_template('dumptemplate_descr_row.txt')
---]]
-
-local function check_open_device(d, ep1, ep2)
- if not d then return end
- if d.handler then return true end
- -- if the device is not open, then open the device
- bobot.debugprint ("Opening", d.name, d.handler)
- return d:open(ep1 or 1, ep2 or 1) --TODO asignacion de ep?
-end
-
-local html_list_devices = function (params)
- local ret,comma = "", ""
- local dsel=params['dsel']
- for d_name, d in pairs(devices) do
- local broken=""
- if not check_open_device(d, ep1, ep2) then
- broken=" (failed to open)"
- bobot.debugprint ("bs: WARN! Failure opening", d_name)
- end
- if dsel==d_name then
- ret = ret .. comma .. '<strong>' .. d_name .. broken .. '</strong>'
- else
- ret = ret .. comma .. '<a href="/dump.htm?dsel='..d_name..'">'..d_name..broken..'</a>'
- end
- comma=", "
- end
- return ret
-end
-
-local html_describe_device = function (params)
- --borrar
- dump_template_descr_row=load_template('dumptemplate_descr_row.txt')
-
- local dsel=params['dsel']
- local command=params['command']
- if not dsel then return "" end
-
- local device=devices[dsel]
-
- if not device then return "<TR><TD>Missing Device!</TD></TR>" end
- if not device.api then return "<TR><TD>Missing Driver for Device!</TD></TR>" end
-
- local ret = ""
- for fname, fdef in pairs(device.api) do
- local row=dump_template_descr_row
-
- local result,ok
- --print ("::",command,fname)
- if command==fname then
- --preparar parametros
- local fparams={}
- for i,param in ipairs(fdef.parameters) do
- local rname=param['rname']
- local rtype=param['rtype']
- if rtype=="int" or rtype=="number" or rtype=="numeric" then
- fparams[i]=tonumber(params[rname])
- else
- fparams[i]=params[rname]
- end
- end
-
- --ejecutar
- ok, result= pcall( fdef.call, unpack(fparams) )
- if not ok then bobot.debugprint ("Error calling", ret) end
- --imprimir
- bobot.debugprint ("::::",result)
- end
-
- local returns=''
- local comma=''
- for i,rets in ipairs(fdef.returns) do
- returns = returns..comma..rets['rtype']..'&nbsp;'..rets['rname']
- comma=','
- end
- local formfields=''
- local parameters=''
- local comma=''
- for i,rets in ipairs(fdef.parameters) do
- local rname=rets['rname']
- formfields=formfields..rname..': <INPUT TYPE="text" NAME="'..rname..'" /><br>'
- parameters = parameters..comma..rets['rtype']..'&nbsp;'..rname
- comma=','
- end
-
- local rep = {
- ['COMMAND'] = fname,
- ['RETURNS'] = returns,
- ['PARAMETERS'] = parameters,
- ['RESULT'] = result,
- ['MODULENAME'] = dsel,
- ['FORMFIELDS'] = formfields,
- }
- local generated_row=string.gsub(row, '<!%-%-(%w+)%-%->', rep)
-
- ret=ret..generated_row
-
- end
-
- return ret
-end
-
-local get_page={}
-setmetatable(get_page, {__index = function(_,page) bobot.debugprint ("======", page);return find_page(page) end})
-get_page["/index.htm"] = function (p)
- local index_template=load_template('indextemplate.txt')
-
- local params=parse_params(p)
- local rep = {
- ['DATA1'] = params['campo'],
- ['DATA2'] = tostring(params['unboton'])..', '..tostring(params['otroboton']),
- }
- local page=string.gsub(index_template, '<!%-%-(%w+)%-%->', rep)
- return "HTTP/1.1 200/OK\r\nContent-Type:text/html\r\nContent-Length: "..#page.."\r\n\r\n"..page
-end
-get_page["/"]=get_page["/index.htm"]
-get_page["/dump.htm"] = function (p)
- --remove this
- dump_template=load_template('dumptemplate.txt')
- dump_template_descr=load_template('dumptemplate_descr.txt')
-
- local params=parse_params(p)
- local dsel=params['dsel']
-
- local usetemplate
- if dsel then
- usetemplate=dump_template_descr
- else
- usetemplate=dump_template
- end
-
- local rep = {
- ['LIST'] = html_list_devices(params),
- ['MODULENAME'] = dsel or "(empty dsel)",
- ['ROWS'] = html_describe_device(params),
- }
- local page=string.gsub(usetemplate, '<!%-%-(%w+)%-%->', rep)
- return "HTTP/1.1 200/OK\r\nContent-Type:text/html\r\nContent-Length: "..#page.."\r\n\r\n"..page
-end
-get_page["/favicon.ico"] = function ()
- local served, err = io.open('bobot_server/favicon.ico', "rb")
- if served ~= nil then
- local content = served:read("*all")
- return "HTTP/1.1 200/OK\r\nContent-Type:image/x-icon\r\nContent-Length: "
- ..#content.."\r\n\r\n" .. content
- else
- bobot.debugprint("Error opening favicon:", err)
- return default_page()
- end
-end
-get_page["/bobot.png"] = function ()
- local served, err = io.open('bobot_server/bobot.png', "rb")
- if served ~= nil then
- local content = served:read("*all")
- return "HTTP/1.1 200/OK\r\nContent-Type:image/png\r\nContent-Length: "
- ..#content.."\r\n\r\n" .. content
- else
- bobot.debugprint("Error opening logo:", err)
- return default_page()
- end
-end
-butia.init(get_page)
-
-function serve(skt)
- local line,err = skt:receive('*l') --read first line, must be GET or POST
- if err then return nil, err end
-
- local f,p=string.match(line, '^GET ([%/%.%d%w%-_]+)[%?]?(.-) HTTP/1.1$')
- if f then
- repeat
- --skip headers we don't care
- line,err=skt:receive()
- until line=='' or line==nil
- if err then return end
- local s=get_page[f](p)
- return(s..'\r\n')
- end
-
- local f,p=string.match(line, '^POST ([%/%.%d%w%-_]+) HTTP/1.1$')
- if f then
- local length
- repeat
- --skip headers we don't care
- line,err=skt:receive()
- length=length or string.match(line, '^Content%-Length%: (%d+)$')
- until line=='' or line==nil
- if err then return end
- local p=skt:receive(tonumber(length))
- local s=get_page[f](p)
- return(s..'\r\n')
- end
-end
-
diff --git a/lib/support/bobot_server/bobot-server-process.lua b/lib/support/bobot_server/bobot-server-process.lua
deleted file mode 100644
index 18231cb..0000000
--- a/lib/support/bobot_server/bobot-server-process.lua
+++ /dev/null
@@ -1,176 +0,0 @@
-#!/usr/bin/lua
-
-module(..., package.seeall);
-
-local bobot = require("bobot")
-
---local devices=devices
---local DEBUG = false
-
-local function check_open_device(d, ep1, ep2)
- if not d then return end
- if d.handler or d.name=='pnp' then return true end
-
- -- if the device is not open, then open the device
- bobot.debugprint ("Opening", d.name, d.handler)
- return d:open(ep1 or 1, ep2 or 1) --TODO asignacion de ep?
-end
-
-process = {}
-
-process["INIT"] = function () --to check the new state of hardware on the fly
- server_init()
-end
-process["REFRESH"] = function () --to check the new state of hardware on the fly
- --for _, bb in ipairs(bobot.baseboards) do
- -- bb:refresh()
- --end
- server_refresh()
- return 'ok'
-end
-
-
-process["LIST"] = function ()
- local ret,comma = "", ""
- for _, d in ipairs(devices) do
- ret = ret .. comma .. d.name
- comma=","
- end
- return ret
-end
-
-
-process["LISTI"] = function ()
- if bobot.baseboards then
- bobot.debugprint("listing instanced modules...")
- for _, bb in ipairs(bobot.baseboards) do
- local handler_size=bb:get_handler_size()
- for i=1, handler_size do
- t_handler = bb:get_handler_type(i)
- bobot.debugprint("handler=", i-1 ," type=" ,t_handler)
- end
- end
- end
-end
-
-
-process["OPEN"] = function (parameters)
- local d = parameters[2]
- local ep1= tonumber(parameters[3])
- local ep2= tonumber(parameters[4])
-
- if not d then
- bobot.debugprint("ls:Missing 'device' parameter")
- return
- end
-
- local device = devices[d]
- if check_open_device(device, ep1, ep2) then
- return "ok"
- else
- return "fail"
- end
-end
-process["DESCRIBE"] = function (parameters)
- local d = parameters[2]
- local ep1= tonumber(parameters[3])
- local ep2= tonumber(parameters[4])
-
- if not d then
- bobot.debugprint("ls:Missing \"device\" parameter")
- return
- end
-
- local device = devices[d]
- if not check_open_device(device, ep1, ep2) then
- return "fail"
- end
- if not device.api then
- return "missing driver"
- end
-
- local ret = "{"
- for fname, fdef in pairs(device.api) do
- ret = ret .. fname .. "={"
- ret = ret .. " parameters={"
- for i,pars in ipairs(fdef.parameters) do
- ret = ret .. "[" ..i.."]={"
- for k, v in pairs(pars) do
- ret = ret .."['".. k .."']='"..tostring(v).."',"
- end
- ret = ret .. "},"
- end
- ret = ret .. "}, returns={"
- for i,rets in ipairs(fdef.returns) do
- ret = ret .. "[" ..i.."]={"
- for k, v in pairs(rets) do
- ret = ret .."['".. k .."']='"..tostring(v).."',"
- end
- ret = ret .. "},"
- end
- ret = ret .. "}},"
- end
- ret=ret.."}"
-
- return ret
-end
-process["CALL"] = function (parameters)
- local d = parameters[2]
- local call = parameters[3]
-
- if not (d and call) then
- bobot.debugprint("ls:Missing parameters", d, call)
- return
- end
-
- local device = devices[d]
- if not check_open_device(device, nil, nil) then
- return "fail"
- end
-
- if not device.api then return "missing driver" end
- local api_call=device.api[call];
- if not api_call then return "missing call" end
-
- if api_call.call then
- --local tini=socket.gettime()
- local ok, ret = pcall (api_call.call, unpack(parameters,4))
- if not ok then bobot.debugprint ("Error calling", ret) end
- --print ('%%%%%%%%%%%%%%%% bobot-server',socket.gettime()-tini)
- return ret
- end
-end
-process["CLOSEALL"] = function ()
- if bobot.baseboards then
- for _, bb in ipairs(bobot.baseboards) do
- --this command closes all the open user modules
- --it does not have sense with plug and play
- bb:force_close_all() --modif andrew
- end
- end
- return "ok"
-end
-process["BOOTLOADER"] = function ()
- if bobot.baseboards then
- for _, bb in ipairs(bobot.baseboards) do
- bb:switch_to_bootloader()
- end
- end
- return "ok"
-end
-process["DEBUG"] = function (parameters) --disable debug mode Andrew code!
- local debug = parameters[2]
- if not debug then return "missing parameter" end
- if debug=="ON" then
- bobot.debugprint = print --function(...) print (...) end --enable printing
- elseif debug=="OFF" then
- bobot.debugprint = function() end --do not print anything
- end
- return "ok"
-end
-process["QUIT"] = function ()
- bobot.debugprint("Requested EXIT...")
- os.exit()
- return "ok"
-end
-
diff --git a/lib/support/bobot_server/bobot.png b/lib/support/bobot_server/bobot.png
deleted file mode 100644
index 2de1124..0000000
--- a/lib/support/bobot_server/bobot.png
+++ /dev/null
Binary files differ
diff --git a/lib/support/bobot_server/butia/butia.htm b/lib/support/bobot_server/butia/butia.htm
deleted file mode 100644
index ca86673..0000000
--- a/lib/support/bobot_server/butia/butia.htm
+++ /dev/null
@@ -1,17 +0,0 @@
-<html>
-<HEAD>
- <TITLE>Robot Butia</TITLE>
-</HEAD>
-<frameset rows="25%,50%,25%">
-
- <frame src="header.htm" />
- <frameset cols="25%,75%">
- <frame src="command.htm" />
- <frame src="view.htm" />
- </frameset>
-<frame src="sensors.htm" />
-
-</frameset>
-
-</html>
-
diff --git a/lib/support/bobot_server/butia/butia_http.lua b/lib/support/bobot_server/butia/butia_http.lua
deleted file mode 100644
index 6a0b1ff..0000000
--- a/lib/support/bobot_server/butia/butia_http.lua
+++ /dev/null
@@ -1,32 +0,0 @@
-module(..., package.seeall);
-
---local devices=devices
-local process = require("bobot-server-process").process
-local util = require("http-util")
-
-local parse_params = util.parse_params
-local load_template = util.load_file
-
-local butia_template=load_template('butia/butia.htm') or "Error loading template butia.htm"
-local header_template=load_template('butia/header.htm') or "Error loading template header.htm"
-
-function init (get_page)
- get_page["/butia.htm"] = function (p)
- local params=parse_params(p)
- local rep = {
- ['DATA1'] = params['campo'],
- ['DATA2'] = tostring(params['unboton'])..', '..tostring(params['otroboton']),
- }
- local page=string.gsub(butia_template, '<!%-%-(%w+)%-%->', rep)
- return "HTTP/1.1 200/OK\r\nContent-Type:text/html\r\nContent-Length: "..#page.."\r\n\r\n"..page
- end
-
- get_page["/header.htm"] = function (p)
- local params=parse_params(p)
- local rep = {
- }
- local page=string.gsub(header_template, '<!%-%-(%w+)%-%->', rep)
- return "HTTP/1.1 200/OK\r\nContent-Type:text/html\r\nContent-Length: "..#page.."\r\n\r\n"..page
- end
-
-end
diff --git a/lib/support/bobot_server/butia/command.htm b/lib/support/bobot_server/butia/command.htm
deleted file mode 100644
index 9cec722..0000000
--- a/lib/support/bobot_server/butia/command.htm
+++ /dev/null
@@ -1,36 +0,0 @@
-<HTML>
-
-<BODY BGCOLOR="#bfbfbf" TEXT="#000000" VLINK="#000099" LINK="#9900ff" ALINK="#FFFF00">
-<CENTER>
-<h1 style="color: rgb(0, 153, 0);">Haz click en los botones para dirigir el robot</h1>
-<hr>
-<BR>
-<TABLE BORDER=1 WIDTH="95%" CELLSPACING=3 CELLPADDING=3>
-<TR>
- <TD ALIGN="center" VALIGN="top">
- <TABLE BORDER=1 WIDTH="95%" CELLSPACING=3 CELLPADDING=3>
- <TR>
- <TD ALIGN="center"></TD>
- <TD ALIGN="center"><A HREF="up.htm"><IMG SRC="images/btar_up.gif" BORDER=0 WIDTH=20 HEIGHT=20></A></TD>
- <TD ALIGN="center"></TD>
- </TR>
- <TR>
- <TD ALIGN="center"><A HREF="left.htm"><IMG SRC="images/btar_lft.gif" BORDER=0 WIDTH=20 HEIGHT=20></A></TD>
- <TD ALIGN="center"></TD>
- <TD ALIGN="center"><A HREF="right.htm"><IMG SRC="images/btar_rgt.gif" BORDER=0 WIDTH=20 HEIGHT=20></A></TD>
- </TR>
- <TR>
- <TD ALIGN="center"></TD>
- <TD ALIGN="center"><A HREF="down.htm"><IMG SRC="images/btar_dn.gif" BORDER=0 WIDTH=20 HEIGHT=20></A></TD>
- <TD ALIGN="center"></TD>
- </TR>
- </TABLE>
- </TD>
-</TR>
-</TABLE>
-<P>
-
-</CENTER>
-</BODY>
-</HTML>
-
diff --git a/lib/support/bobot_server/butia/describeButia.htm b/lib/support/bobot_server/butia/describeButia.htm
deleted file mode 100644
index b147468..0000000
--- a/lib/support/bobot_server/butia/describeButia.htm
+++ /dev/null
@@ -1,88 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<HTML>
-<HEAD>
-<TITLE>
-butia (Describe)
-</TITLE>
-</HEAD>
-
-<BODY BGCOLOR="white" >
-<HR>
-<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
-<TR>
-<TD COLSPAN=2 BGCOLOR="#EEEEFF" >
-<A NAME="navbar_top_firstrow"><!-- --></A>
-<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
- <TR ALIGN="center" VALIGN="top">
- <TD BGCOLOR="#EEEEFF" > &nbsp;<FONT ><B>DESCRIBE butia</B></FONT>&nbsp;</TD>
- <TD BGCOLOR="#EEEEFF" > <A HREF="lback.htm"><FONT><B>DESCRIBE lback</B></FONT></A>&nbsp;</TD>
- <TD BGCOLOR="#FFFFFF" > <A HREF="dist.htm"><FONT ><B>DESCRIBE dist</B></FONT></A>&nbsp;</TD>
-
- </TR>
-</TABLE>
-</TD>
-<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
-<b>Butia<br>Robot&nbsp;Educativo</b></EM>
-</TD>
-</TR>
-</TABLE>
-<HR>
-<H2>
-<FONT SIZE="-1">
-Funciones disponibles en </FONT>
-<BR>
-butia</H2>
-
-<HR>
-
-<P>
-A continuaci&oacute;n se lista las funciones disponibles en este m&oacute;dulo.
-<br>
-Puedes invocar la funci&oacute;n ingresando los datos necesarios y presionando el bot&oacute;n Submit.
-<p>
-
-<P>
-
-<A NAME="method_summary"><!-- --></A>
-<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
-<TR BGCOLOR="#CCCCFF" >
-<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
-<B>Resumen de Funciones</B></FONT></TH>
-</TR>
-
-
-<TR BGCOLOR="white" >
-<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
-<CODE>&nbsp;data&nbsp;(String)</CODE></FONT></TD>
-<TD><CODE><B>read_ver</B>(data&nbsp;number)</CODE>
-
-<BR>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-<FORM METHOD="POST" ACTION="evaluate_function.do">
-<HIDDEN VALUE="read_ver"/>
-data: <INPUT TYPE="text" NAME="data" />
-<INPUT TYPE="submit" VALUE="Submit" />
-</FORM>
-</TD>
-</TR>
-
-<TR BGCOLOR="white" >
-<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
-<CODE>&nbsp;data&nbsp;(String)</CODE></FONT></TD>
-<TD><CODE><B>get_volt</B>()</CODE>
-
-<BR>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-<FORM METHOD="POST" ACTION="evaluate_function.do">
-<HIDDEN VALUE="get_volt"/>
-<INPUT TYPE="submit" VALUE="Submit" />
-</FORM>
-</TD>
-</TR>
-
-</TABLE>
-&nbsp;
-<P>
-
-</BODY>
-</HTML> \ No newline at end of file
diff --git a/lib/support/bobot_server/butia/header.htm b/lib/support/bobot_server/butia/header.htm
deleted file mode 100644
index 7d64136..0000000
--- a/lib/support/bobot_server/butia/header.htm
+++ /dev/null
@@ -1,10 +0,0 @@
-<HTML>
-
-<BODY BGCOLOR="#bfbfbf" TEXT="#000000" VLINK="#000099" LINK="#9900ff" ALINK="#FFFF00">
-<CENTER>
-<H1>ROBOT BUTIA</H1>
-<IMG SRC="butia/images/butiaRobot3.png" style="width: 152px; height: 113px;" ALT="Butia" align="middle"><P>
-<HR SIZE=1 NOSHADE>
-</CENTER>
-</BODY>
-</HTML>
diff --git a/lib/support/bobot_server/butia/images/btar_dn.gif b/lib/support/bobot_server/butia/images/btar_dn.gif
deleted file mode 100644
index 7f6b4f3..0000000
--- a/lib/support/bobot_server/butia/images/btar_dn.gif
+++ /dev/null
Binary files differ
diff --git a/lib/support/bobot_server/butia/images/btar_lft.gif b/lib/support/bobot_server/butia/images/btar_lft.gif
deleted file mode 100644
index e104fe4..0000000
--- a/lib/support/bobot_server/butia/images/btar_lft.gif
+++ /dev/null
Binary files differ
diff --git a/lib/support/bobot_server/butia/images/btar_rgt.gif b/lib/support/bobot_server/butia/images/btar_rgt.gif
deleted file mode 100644
index 4cc5ae0..0000000
--- a/lib/support/bobot_server/butia/images/btar_rgt.gif
+++ /dev/null
Binary files differ
diff --git a/lib/support/bobot_server/butia/images/btar_up.gif b/lib/support/bobot_server/butia/images/btar_up.gif
deleted file mode 100644
index e3180df..0000000
--- a/lib/support/bobot_server/butia/images/btar_up.gif
+++ /dev/null
Binary files differ
diff --git a/lib/support/bobot_server/butia/images/butiaRobot3.png b/lib/support/bobot_server/butia/images/butiaRobot3.png
deleted file mode 100644
index f7e74cf..0000000
--- a/lib/support/bobot_server/butia/images/butiaRobot3.png
+++ /dev/null
Binary files differ
diff --git a/lib/support/bobot_server/butia/images/clase07.jpg b/lib/support/bobot_server/butia/images/clase07.jpg
deleted file mode 100644
index acc498f..0000000
--- a/lib/support/bobot_server/butia/images/clase07.jpg
+++ /dev/null
Binary files differ
diff --git a/lib/support/bobot_server/butia/sensors.htm b/lib/support/bobot_server/butia/sensors.htm
deleted file mode 100644
index dca9244..0000000
--- a/lib/support/bobot_server/butia/sensors.htm
+++ /dev/null
@@ -1,40 +0,0 @@
-<HTML>
-
-<BODY >
-<CENTER>
-
-<table cellspacing="0" cellpadding="5" border="1" align="top">
-<tr>
-<th> Sensor Name
-</th><th> Type (A/D)
-</th><th> Value
-</th><th> Other
-</th></tr>
-<tr>
-<td> Temperature
-</td><td> D
-</td><td> 23
-</td><td> C
-</td></tr>
-<tr>
-<td> Pote
-</td><td> A
-</td><td> 100
-</td><td>
-</td></tr>
-<tr>
-<td> Gas
-</td><td> A
-</td><td> 15
-</td><td>
-</td></tr>
-<tr>
-<td> Button
-</td><td> D
-</td><td> 1
-</td><td> Pressed
-</td></tr>
-
-</CENTER>
-</BODY>
-</HTML> \ No newline at end of file
diff --git a/lib/support/bobot_server/butia/view.htm b/lib/support/bobot_server/butia/view.htm
deleted file mode 100644
index 0fda3dc..0000000
--- a/lib/support/bobot_server/butia/view.htm
+++ /dev/null
@@ -1,10 +0,0 @@
-<HTML>
-
-<BODY BGCOLOR="#bfbfbf" TEXT="#000000" VLINK="#000099" LINK="#9900ff" ALINK="#FFFF00">
-<CENTER>
-
-<IMG SRC="images/clase07.jpg" WIDTH=100% HEIGHT=100% ALT="Butia"><P>
-
-</CENTER>
-</BODY>
-</HTML> \ No newline at end of file
diff --git a/lib/support/bobot_server/dumptemplate.txt b/lib/support/bobot_server/dumptemplate.txt
deleted file mode 100644
index b1c1dfa..0000000
--- a/lib/support/bobot_server/dumptemplate.txt
+++ /dev/null
@@ -1,11 +0,0 @@
-<html>
-<head><title>Bobot dump</title></head>
-<body>
-<h2>Bobot</h2>
-<a href="/index.htm">home</a> | modules
-<hr>
-Modules: <!--LIST--><br>
-
-<hr>
-</body>
-</html>
diff --git a/lib/support/bobot_server/dumptemplate_descr.txt b/lib/support/bobot_server/dumptemplate_descr.txt
deleted file mode 100644
index e34df38..0000000
--- a/lib/support/bobot_server/dumptemplate_descr.txt
+++ /dev/null
@@ -1,37 +0,0 @@
-<html>
-<head><title>Bobot dump</title></head>
-<body>
-<h2>Bobot dump</h2>
-<a href="/index.htm">home</a> | dump
-<hr>
-Modules: <!--LIST--><br>
-
-<HR>
-<H2>
-<FONT SIZE="-1">
-Funciones disponibles en </FONT>
-<BR>
-<!--MODULENAME--></H2>
-
-<HR>
-
-<P>
-A continuaci&oacute;n se lista las funciones disponibles en este m&oacute;dulo.
-<br>
-Puedes invocar la funci&oacute;n ingresando los datos necesarios y presionando el bot&oacute;n Submit.
-<p>
-
-<P>
-
-<A NAME="method_summary"><!-- --></A>
-<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
-<TR BGCOLOR="#CCCCFF" >
-<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
-<B>Resumen de Funciones</B></FONT></TH>
-</TR>
-
-
-<!--ROWS--><br>
-<hr>
-</body>
-</html>
diff --git a/lib/support/bobot_server/dumptemplate_descr_row.txt b/lib/support/bobot_server/dumptemplate_descr_row.txt
deleted file mode 100644
index ade4736..0000000
--- a/lib/support/bobot_server/dumptemplate_descr_row.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-<TR BGCOLOR="white" >
-<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
-<CODE>(<!--RETURNS-->)</CODE></FONT></TD>
-<TD><CODE><B><!--COMMAND--></B>(<!--PARAMETERS-->)</CODE>
-
-<BR>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-<FORM METHOD="POST" ACTION="/dump.htm">
-<INPUT TYPE=HIDDEN NAME="command" VALUE="<!--COMMAND-->"/>
-<INPUT TYPE=HIDDEN NAME="dsel" VALUE="<!--MODULENAME-->"/>
-<!--FORMFIELDS-->
-<INPUT TYPE="submit" VALUE="Submit" />
-</FORM>
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-<!--RESULT-->
-
-</TD>
-</TR>
-
diff --git a/lib/support/bobot_server/favicon.ico b/lib/support/bobot_server/favicon.ico
deleted file mode 100644
index 3834805..0000000
--- a/lib/support/bobot_server/favicon.ico
+++ /dev/null
Binary files differ
diff --git a/lib/support/bobot_server/http-util.lua b/lib/support/bobot_server/http-util.lua
deleted file mode 100644
index c8b9a6c..0000000
--- a/lib/support/bobot_server/http-util.lua
+++ /dev/null
@@ -1,41 +0,0 @@
-module(..., package.seeall);
-
-local bobot = require("bobot")
-
-local my_path = debug.getinfo(1, "S").source:match[[^@?(.*[\/])[^\/]-$]]
-
---local devices=devices
-function load_file (filename)
- local served, err = io.open(my_path..filename, "r")
- if served then
- return served:read("*all")
- else
- bobot.debugprint("Error opening", my_path..filename,":", err)
- end
-end
-
-function parse_params(s)
- local params={}
- for k,v in string.gmatch(s, '([%w%%%_%-]+)=([%w%%%_%-]+)') do
- bobot.debugprint('param', k, v)
- params[k]=v
- end
- return params
-end
-
-local page404="<html><head><title>404 Not Found</title></head><body><h3>404 Not Found!</h3><hr><small>bobot</small></body></html>"
-local http404="HTTP/1.1 404 Not Found\r\nContent-Type:text/html\r\nContent-Length: "..#page404.."\r\n\r\n" .. page404
-page404=nil
-local function error_page()
- return http404
-end
-
-function find_page (page)
- local page=string.sub(page,2)
- local file=load_file(page)
- if file then
- return function() return file end
- else
- return error_page
- end
-end
diff --git a/lib/support/bobot_server/indextemplate.txt b/lib/support/bobot_server/indextemplate.txt
deleted file mode 100644
index 24b2245..0000000
--- a/lib/support/bobot_server/indextemplate.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-<html>
-<head><title>Bobot</title></head>
-<body>
-<h2>Bobot</h2>
-home | <a href="/dump.htm">modules</a>
-<hr>
-
-<img src="/bobot.png" alt="bobot logo" width="200" height="200" />
-<p>
-<a href="http://www.fing.edu.uy/inco/grupos/mina/">Grupo MINA</a><br>
-In.Co., Facultad de Ingenier&iacute;a<br>
-Universidad de la Rep&uacute;blica<br>
-Uruguay</p>
-<hr>
-</body>
-</html>