User`s guide
Web Mountain Technologies Page 68
Chapter 5
Home Automation
The RUC can also be used as an Ethernet PIM for intelligent controller
applications. In order to do this, UPB commands will need to be
sent over the LAN. There are multiple ways of doing this – here
are three examples:
I. HTTP POST Command
The controller will need to issue a HTTP POST command. This
process is described in this URL:
http://souptonuts.sourceforge.net/code/http_post.c.html
In this process, in the main(void) function, you will need to
change:
char *hname = "wmtruc"
char *page = "upbtrans.htm"
char *poststr = "command=87000101FF2058"
This is a C++ example. Your language might be different, but
most languages will have a mechanism to generate a HTTP POST
command.
II. Use telnet.
telnet <IP Address:9761> <Control-T> 87000101FF2058<CR>
III. Create a client based program in C or other language that
will “talk” to the RUC on port 9761. For examples of this,
contact Web Mountain Tech Support.