Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
minLevel1
maxLevel7

Anchor
_

...

c33gvscawgha
_c33gvscawgha
GumbandConnection

A Gumband communication instance (only one can exist per device). Functions for this class are listed below:

...

GumbandConnection MyGumband;

Anchor
_3y1dke63jfk1
_3y1dke63jfk1
begin()

Initiates the Gumband connection.

...

MyGumband.begin();

MyGumband.begin(1);

Anchor
_dz8r6e2d5c9e
_dz8r6e2d5c9e
id()

Sets the Hardware ID of the Gumband Hardware. This is a unique identifier generated by the Gumband UI. Each separate registered Gumband Hardware device receives its own ID. This ID is required to link Hardware to a specific Exhibit in the Gumband UI.

...

MyGumband.id(16);

MyGumband.id(“16”);

Anchor
_ekerxn9mpoz2
_ekerxn9mpoz2
username()

Set the Gumband master control server username. This must match the username created for this device within the Gumband UI.

...

MyGumband.username(“MarlonBando”);

Anchor
_s55pd2npmuk4
_s55pd2npmuk4
password()

Set the Gumband master control server password. This must match the password created for this device within the Gumband UI.

...

MyGumband.password(“P455W0RD!”);

Anchor
_8436ign0lah1
_8436ign0lah1
connected()

Returns ‘1’ if the Hardware has a valid network connection.

...

if(MyGumband.connected() == 1) { //Connected to Network }

Anchor
_exmbebr973f0
_exmbebr973f0
connectedMaster()

Returns ‘1’ if the Hardware has a valid master server connection.

...

if(MyGumband.connectedMaster() == 1) { //Connected to Master }

Anchor
_j3zciiu1d8j8
_j3zciiu1d8j8
connectedExhibit()

Returns ‘1’ if the Hardware has a valid Exhibit server connection.

...

if(MyGumband.connectedExhibit() == 1) { //Connected to Exhibit }

Anchor
_jfhpxk8g7y7c
_jfhpxk8g7y7c
event()

Publish a text message to the ‘event’ log.

...

MyGumband.event(“An event has occurred!”);

Anchor
_n7yxjdx0rsds
_n7yxjdx0rsds
error()

Publish a text message to the ‘error’ log.

...

MyGumband.error(“An error has occurred!”);

Anchor
_bjzjxs3rve2f
_bjzjxs3rve2f
debug()

Publish a text message to the ‘debug’ log.

...

MyGumband.debug(“Something routine has occurred!”);

Anchor
_oiaohwwerp9u
_oiaohwwerp9u
print()

Print data to the Hardware USB serial port.

...

MyGumband.print(“Hello World!”);

MyGumband.print(25);

Anchor
_avo7l8wq7y6c
_avo7l8wq7y6c
GumbandProperty

An instance of a Gumband property or endpoint. An individual instance must exist for every Gumband property in the Exhibit.

...

GumbandProperty MyProperty;

Anchor
_i9qqlt12uh4l
_i9qqlt12uh4l
begin()

This function creates a named property within a named peripheral container and registers it with the Gumband server so we can publish or subscribe to it. A Gumband instance must first exist before this function will succeed.

...

MyProperty.begin(“PeripheralName”, “PropertyName”, gmbnd_button);

Anchor
_l09nxxchcfvj
_l09nxxchcfvj
publish()

Publish data to the property endpoint.

...