> For the complete documentation index, see [llms.txt](https://sharinghub-eng.kittenbot.hk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sharinghub-eng.kittenbot.hk/wifibrick_iot/futureboard/objectblocks.md).

# FutureBoard and ObjectBlocks

### Setting Up ObjectBlocks

Set up ObjectBlocks by following the instructions.

#### [Using ObjectBlocks](https://kittenbothk-eng.readthedocs.io/en/latest/Wifibrick/MakeCode/objectblock.html)

### KittenBlock Programming

#### Connecting to ObjectBlocks

Build the following program to connect to ObjectBlocks.

* MQTT Host: hub2.objectblocks.cc
* clientID: Does Not Matter
* username: Copy from ObjectBlocks
* password: Copy from ObjectBlocks

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ob1.png)

#### Publishing to ObjectBlocks Channel

Build the following program to publish data to ObjectBlocks.

Copy and paste your topic name from ObjectBlocks.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ob2.png)

Please note the following differences regarding text or numeric data.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ob3.png)

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ob4.png)

Any published data will be shown on ObjectBlocks.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ob5.png)

#### Subscribing to ObjectBlocks Channel

Build the following program to read ObjectBlocks channel data.

Copy and paste your topic name from ObjectBlocks.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ob6.png)

The data is shown on ObjectBlocks and FutureBoard.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ob7.png)

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ob8.jpg)
