> 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/programming-platforms/kittenblock/kittenblock-functions-and-features/kittenbot-extensions/internet-of-things.md).

# Internet of Things

Internet of Things is a hot topic in today’s society. Kittenblock already comes with an easy-to-use IoT extension for you to learn and experience IoT.

### Load the extension for IoT

Open up the extension page.

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

Select IoT.

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

New programming blocks will be added.

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

### Using IoT Extension

Kittenblock comes with a local IoT server.

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

Navigate to local server and switch the server on.

The IP address of your local server is seen on this page.

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

We can now use our local IoT server for MQTT operations. Type the IP address of your local server into the MQTT host parameter.

Example: Publishing and Subscribing to a topic on our local server

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

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

Multiple computers or devices can connect to the local server as long as they are connected to the same local network, i.e. the same WiFi network.

For example, in this figure, all 3 computers are on the same Wifi network, with computer A hosting the server with 192.168.0.117 while B and C connecting to it. The 3 computers can communicate with each other as they publish and subscribe to the same topic.

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


---

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

```
GET https://sharinghub-eng.kittenbot.hk/programming-platforms/kittenblock/kittenblock-functions-and-features/kittenbot-extensions/internet-of-things.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.
