---
title: MQTT Message Simulation
---

## Features Introduction

### Prerequisites

#### Applicable Scope

This extension is implemented based on network interfaces and does not rely on device online status, supporting operations when devices are offline. It has no requirements for the IDE version and is applicable to devices of all categories and protocols.

#### Applicable Scenarios

- The business uses the onMqttMessageReceived interface for MQTT message listening, and management of these data is needed.
- The MQTT message data structure has been defined, but there is no real device data available for debugging purposes.

### Features

- Simulate MQTT message data reception

## Usage Process

### Installation

1. In Tuya MiniApp Tools, open the device tool, authorize login, and select a device from the device list. Click to enter the device page.

<Image src="https://images.tuyaus.com/content-platform/hestia/17304287706174b3ed515.png" style={{zoom:'50%'}} />

2. On the device page, click on 'Extension Management' in the top right corner to enter the extension market.

<Image src="https://images.tuyaus.com/content-platform/hestia/173042875702b6e3cf658.png"  style={{zoom:'50%'}} />

3. In the extension market, find '面板工具Mqtt消息模拟扩展' and click install.

<Image src="https://images.tuyaus.com/content-platform/hestia/17304287288c07171fe7b.png"  style={{zoom:'50%'}} />

### Usage

1. After a successful installation, an entry for "Mqtt Mock" will appear in the top navigation bar on the device page.

<Image src="https://images.tuyaus.com/content-platform/hestia/17304286447c16f6bb350.png" style={{zoom:'50%'}} />

2. Click "Mqtt Mock" to enter the MQTT message simulation page.

3. Enter JSON formatted MQTT message data in the input box, and click the "Trigger onMqttMessageReceived" button to simulate the MQTT message sent by the device.

## Notes

1. The business must first call the onMqttMessageReceived interface to receive the simulated MQTT message.

## Version Log

### v0.0.7

Release Date: 2024-05-29

- Optimized the JSON input component

### v0.0.6

Release Date: 2024-04-28

- Multi-language optimization

### v0.0.5

Release Date: 2024-04-28

- Optimized some known issues

### v0.0.4

Release Date: 2024-03-27

- Optimized some known issues

### v0.0.3

Release Date: 2024-03-08

- Updated configuration files

### v0.0.2

Release Date: 2024-03-04

- Fixed known issues
- Optimized the display when data is empty

### v0.0.1

Release Date: 2024-03-04

First version released

- Implemented MQTT message data simulation sending
