HTTP Server (Custom)

+ How To Add This Control To Your Project (Click to Expand)
  1. Load the most recent release of ARC.
  2. Press the Project tab from the top menu bar in ARC.
  3. Press Add Control from the button ribbon bar in ARC.
  4. Choose the General category tab.
  5. Press the HTTP Server (Custom) icon to add the control to your project.

This HTTP Server is different than the regular HTTP Server becuase it allows custom HTML Files. The HTML Files may contain special commands for controlling your robot

Supported file extension types:

  • .HTML
  • .JPG
  • .PNG
  • .CSS
*Note: Any other file extension is returned as a mime type of application/octet-stream

Embedded Control Syntax

There are special html style tags that are used to create buttons for interaction with ARC. These buttons are AJAX, which means they do not reload the page when pressed.

  • <ez-move text="button title (i.e. Forward)" data-direction="forward" />
  • <ez-move text="button title (i.e. Right)" data-direction="right" />
  • <ez-move text="button title (i.e. Reverse)" data-direction="reverse" />
  • <ez-move text="button title (i.e. Left)" data-direction="left" />
  • <ez-move text="button title (i.e. Stop)" data-direction="stop" />
  • <ez-script text="button title">ezscript command</ez-script>
  • <ez-camera data-controlname="Camera" data-interval="100" />
  • <ez-getdigital data-port="d0" data-interval="1000" data-truetext="True" data-truebgcolor="#00ff00" data-truefgcolor="#ffffff" data-falsetext="False" data-falsebgcolor="#ff0000" data-falsefgcolor="#ffffff" />