General - HTTP Server (Custom)

How To Add This Control To Your Project

Step #1) Load the most recent release of EZ-Builder
Step #2) Press the Project tab from the top menu bar of EZ-Builder
Step #3) Press Add Control from the button ribbon bar of EZ-Builder
Step #4) Choose the General category tab
Step #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 EZ-Builder. 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" />

Related Tutorials & Activities

USB WiFi or Ethernet Adapter

USB WiFi or Ethernet Adapter

As you may have seen in the WiFi Modes Tutorial, the EZ-B may be put into one of two available modes (AP or Client). Some cloud-based controls require an internet connection, such as PandoraBot, Mic...

Last Modified on 9/19/2018

Created by EZ-Robot

Related Articles: HTTP Server