# 未來板IoT KittenBlock編程教學

使用未來板內置的WiFi，可以實現IoT的功能。

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

### 未來板與IoT平台教學

此頁面是針對一般普遍的MQTT平台作教學，連接方法或數據格式請用戶自行參考自己使用的IoT平台的官方指引。

KittenBot亦有提供個別平台的IoT使用教學，如有興趣請參考以下篇章。

未來板與各IoT平台編程教學

### IoT積木塊

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

#### 範例程式：連接WiFi與獲取WiFi配置信息

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

#### 範例程式：MQTT伺服器通訊

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

#### 範例程式：獲取網絡時間

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


---

# Agent Instructions: 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:

```
GET https://sharinghub.kittenbot.hk/mcu/futureboard/kittenblock/wifi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
