---
title: "RP2040-MicrotikAPI"
url: "https://maker.wiznet.io/mason/projects/rp2040-microtikapi/"
markdown_url: "https://maker.wiznet.io/mason/projects/rp2040-microtikapi/md"
type: "UCC: User Created Content"
author: "matej2005"
author_url: "https://github.com/matej2005/RP2040-MicrotikAPI"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "matej2005"
original_url: "https://github.com/matej2005/RP2040-MicrotikAPI"
license: "MIT license (MIT)"
published: "2025-07-15"
language: "en"
tags: ["W5500"]
hardware: ["Raspberry Pi RP2040", "WIZnet W5500"]
likes: 0
views: 1132
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# RP2040-MicrotikAPI

> RP2040-MicrotikAPI

Original author: matej2005 (source: https://github.com/matej2005/RP2040-MicrotikAPI)

## Components

- **Raspberry Pi RP2040** x 1 ([docs](https://www.raspberrypi.com/documentation/microcontrollers/rp2040.html))
- **WIZnet W5500** x 1 ([docs](https://docs.wiznet.io/Product/Chip/Ethernet/W5500))

WIZnet parts: W5500 ([Datasheet](https://docs.wiznet.io/Product/Chip/Ethernet/W5500/datasheet?utm_source=maker&utm_medium=project&utm_campaign=w5500), [product hub](https://maker.wiznet.io/products/w5500/))

## Documents and links

- [RP2040-MicrotikAPI](https://github.com/matej2005/RP2040-MicrotikAPI) (code)

## Article

**RP2040-MicrotikAPI** is a C implementation of the MikroTik RouterOS API protocol designed for the RP2040 microcontroller. It enables embedded systems based on the Raspberry Pi Pico (or other RP2040 boards) to interface directly with MikroTik routers via Ethernet.

## Features

**MikroTik RouterOS API Protocol Support**
Supports authentication, command execution, and response parsing via the official RouterOS API protocol.

**RP2040 Compatibility**
Built using the Pico SDK, targeting RP2040-based platforms.

**Ethernet Communication via W5500**
Integrates the WIZnet W5500 Ethernet controller using SPI for network connectivity.

**lwIP Network Stack Integration**
Utilizes the lwIP TCP/IP stack for lightweight, efficient network communication.

## Use Cases

Automated configuration and control of MikroTik routers from embedded systems

IoT network management applications

Prototyping and educational tools for learning MikroTik API integration

## Technical Stack

Language: C

MCU: RP2040 (e.g. Raspberry Pi Pico)

Network: WIZnet W5500 over SPI

Dependencies: lwIP

## Repository

GitHub: <https://github.com/matej2005/RP2040-MicrotikAPI>

---

Source: https://maker.wiznet.io/mason/projects/rp2040-microtikapi/
