Tuesday February 07 , 2012

HTTP Gateway

Adding and Configuring HTTP Gateway

This tutorial covers how to add a device with HTTP commands in iRule Builder and configure HTTP gateway on iRule App . An example of the device that can be controlled over HTTP gateway is XBMC.

  1. Create new device and add HTTP commands in the iRule Builder.
  2. The iRule App HTTP Gateway configuration.

Step One: Create New Device

Step One :: Image Title

Create new device in Devices window using Actions menu or right clicking on one of the existing devices.

 

Step Two: Device Properties

Step Two :: Image Title

In the device properties window, change the name of the device. In this tutorial we use XBMC device controlled over HTTP.

 

Step Three: Add Device Code

Step Three :: Image Title

Add device code to the 'Network Codes' and name it after the command this code represents.

 

Step Four: Define the HTTP command string

Step Four :: Image Title

In the device code properties window, type the command string in the 'data' field. The command is the string that is followed the device URL.

 

Step Four :: Image Title

The example of the command for XBMC device sent from the internet browser window. Note that the URL of the device has both the IP address and the port followed by the command string.

 

Step Four :: Image Title

The example of the XBMC commands.

Step Five: Device codes for HTTP commands

Step Five :: Image Title

All the commands defined for the device are displayed under 'Network Codes'.

Step Six: HTTP Gateway configuration on iPhone

Step Six :: Image Title

Now open iRule App on your iPhone and sync with the builder. Then open 'Gateways' tab and press ' Edit' button.

Step Seven: HTTP Gateway configuration on iPhone

Step Seven :: Image Title

Scroll down to HTTP gateway section and press '+' to add a new gateway. The following screen should appear. In this screen define the name and the address of the gateway. The address can be an IPv4 or Internet address, including username:password (if required) and port number (if different from default: 80) . For example:

  • 192.168.1.1
  • 192.168.1.1:8081
  • device.mydomain.com
  • device.mydomain.com:8081

  • Then select 'Connect devices' to attach the device created in steps 1 through 5.

    Step Eight: Add device to HTTP gateway

    Step Seven :: Image Title

    Select 'Add device' to attach the device defined in steps 1 through 5.

    Try iRule & Buy iRule with credit card logos

    iRule Newsletter

    e-mail iconSubscribe to our newsletter to receive updates on the iRule Universal Remote Control App

    e-mail address:


    Follow Us

    iruleathome's avatar
    iRule iruleathome
    Loading...

    Last 2 tweets from iruleathome: