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.
- Create new device and add HTTP commands in the iRule Builder.
- The iRule App HTTP Gateway configuration.
Step One: Create New Device
Create new device in Devices window using Actions menu or right clicking on one of the existing devices.
Step Two: Device Properties
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
Add device code to the 'Network Codes' and name it after the command this code represents.
Step Four: Define the HTTP command string
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.
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.
The example of the XBMC commands.
Step Five: Device codes for HTTP commands
All the commands defined for the device are displayed under 'Network Codes'.
Step Six: HTTP Gateway configuration on iPhone
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
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:
Then select 'Connect devices' to attach the device created in steps 1 through 5.
Step Eight: Add device to HTTP gateway
Select 'Add device' to attach the device defined in steps 1 through 5.
Main Menu
iRule Newsletter
Follow Us
Last 2 tweets from iruleathome:
