> For the complete documentation index, see [llms.txt](https://sharinghub.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.kittenbot.hk/wifibrick_iot/futureboard/objectblocks.md).

# 未來板與ObjectBlocks編程教學

未來板亦都可以支援ObjectBlocks的IoT應用。

### ObjectBlocks平台設置

由於在其他篇章已經有ObjectBlocks平台設置的教學，本篇章將不作重複，請參考以下篇章了解MakerCloud平台的使用方法。

#### [ObjectBlocks平台使用方法](/wifibrick_iot/wifibrick_makecode/wifibrick-yu-koi-1/objectblocks.md)

### 未來板KittenBlock編程教學

#### 連接ObjectBlocks平台

搭建以下程式，連接ObjectBlocks。

* 伺服器網址：hub2.objectblocks.cc
* clientID：隨意填寫
* username：按照ObjectBlocks
* password：按照ObjectBlocks

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

#### 發佈信息到ObjectBlocks

搭建以下程式，按A鍵發布信息到ObjectBlocks。

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

發佈數字或文字訊息有少許分別需要注意。

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

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

測試程式，在ObjectBlocks儀錶板裡面會看到發布的信息。

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

#### 在未來板接收ObjectBlocks平台訊息

搭建以下程式，讀取ObjectBlocks平台上的信息。

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

發佈的信息會顯示在ObjectBlocks儀錶板和未來板上。

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

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://sharinghub.kittenbot.hk/wifibrick_iot/futureboard/objectblocks.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
