Getting Started - Meshblu

You've convinced me. I'm in.

This guide is for programmers, or people who want to use Meshblu without using flows or Octoblu. If you want to use any of those, check out Getting Started - Octoblu

The distribution of The Tentacle for Arduino can be found in the "releases" section of the tentacle-build repo here.

🚧

This is Not the Repo You're Looking For

The code in this repo is not the actual tentacle code - it's the code for preparing the library for use in the Arduino IDE. So don't try to flash it to your microcontroller.

For more information on this, check out The Source

πŸ“˜

Meshblu-Util

The following examples assume you're using our command-line utility, meshblu-util. Any other method of communicating with Meshblu will work - it's just easier to do it this way.

For more information on the message and configuration formats, check out Message Formats

Registering a New Device

This works like any other Meshblu device. The only thing you may want to do is specify the device type as device:tentacle - though even that is not required.

meshblu-util register -t device:tentacle > meshblu.json

🚧

Remember - Permissions Are Important

Devices registered with meshblu-util are locked down by default. That means that nothing else can talk to, configure, or subscribe to the device until it's whitelist allows it. None of the sections below will work if you don't do this. See Meshblu - Security for more info.

Configuring The Tentacle

Again, this is pretty much the same as any other device in Meshblu. The only thing you need to worry about is...

❗️

Danger! Protocol Droid Required.

If you message The Tentacle with the wrong format, Meshblu will disconnect the device, because who knows what microcontrollers would do otherwise. The Tentacle will immediately try to connect, however. The documentation for the message format can be found in Message Formats.

meshblu-util update -f ./the-right-config-format-i-swear.json ./meshblu.json

Messaging The Tentacle

Again, this is pretty much the same as any other device in Meshblu. The only thing you need to worry about is...

❗️

Danger! Protocol Droid Required.

See the configuration section for more on this.

meshblu-util message -u <your-tentacle-uuid> -f ./the-right-message-format-i-swear.json ./meshblu.json

Subscribing to The Tentacle

This is exactly the same as any other device in Meshblu. But here it is, for completeness' sake.

meshblu-util subscribe -u <your-tentacle-uuid> ./meshblu.json