+ How To Add This Control To Your Project (Click to Expand)
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
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" />