Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Page Tree
root@self
startDepth1

...

Code Block
languagecpp
GumbandProp motor_start_prop = gumbandCreate("Motor", "Spin", gmbnd_bool);
GumbandProp motor_speed_prop = gumbandCreate("Motor", "Speed", gmbnd_int32);
GumbandProp motor_configreg_prop = gumbandCreateArray("Motor", "Config Register", gmbnd_byte, 10);

GUMBAND_TYPE() & GUMBAND_TYPE_ARRAY()

Casts data to a supported Gumband property type. You can see them all in Property Types

Syntax:

GUMBAND_TYPE(data)

...

Note

In most cases it is not recommended to use any of the following 4 functions to configure the hardware, these changes should be made via the configuration interface (link)

gumbandSetAuthToken()

Syntax:

...

Set the IP of the exhibit server, the static_flag variable can be set to the version number for the user firmware. This is separate from the Gumband version and is an optional value that is visible from the overview dashboard on the Cloud server and available to the Exhibit. This can be any integer and allows you to keep track of the current firmware on the device. This must be called before gumbandSubscribe().

Syntax:

void gumbandSetExhibitServer(const char* addr, uint8_t static_flag);

Parameters:

addr

A text string of the IP address

static_flag

A “boolean”, set to 1 to indicate this Exhibit address should override the Exhibit address set by the Cloud server.

gumbandSetOTAFirmware()

Temporarily puts the hardware device into “OTA firmware update mode” for local updates.

Syntax:

void gumbandSetOTAFirmware(void);

...

Gumband Status API

Functions to monitor the status of the Gumband hardware external connections.

...