# FutureBoard and MakerCloud

### Setting Up MakerCloud

Follow the instructions to set up MakerCloud platform.

#### [UsingMakerCloud](https://kittenbothk-eng.readthedocs.io/en/latest/Wifibrick/MakeCode/makercloud.html)

### KittenBlock Programming

#### Connecting to MakerCloud

Build the following program to connect to MakerCloud with the parameters.

* MQTT Host: mqtt.makercloud.scaleinnotech.com
* ID: Does not matter

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

#### Publishing to MakerCloud topic

Build the following program to publish data to MakerCloud.

Copy the topic from MakerCloud.

The data published must follow the following format: \_dn=\[something],\_dsn=\[something],\[valueField]=\[DATA]

For example, if you are publishing “John “to a field called name, the data format will be “\_dn=future,\_dsn=future,name=John”

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

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

The published data can be seen on MakerCloud.

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

#### Subscribing to MakerCloud topic

Build the following program to subscribe and read data from MakerCloud.

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

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

If the data contains information such as \_dn, you can trim off these data with this algorithm.

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

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

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

Alternatively, simply use “include” to check the data.

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