emqx uses httpapi to kick mqtt client clientid (nanny level tutorial)

Tip: support emqx4.x version and emqx5.x version


foreword

提示:本文测试环境为emqx4.x版本,生产环境为5.x版本

For example: after the device is reset, the mqtt connection is not actively released, and the server needs to actively kick the connection.

1. What is the difference between 4.x and 5.x?

Example: http://127.0.0.1:18083/api/v4 or http://127.0.0.1:18083/api/v5.

2. Use steps

1. Configuration file configuration account password

The code is as follows (example):

mqtt:
  httpurl: http:/

Guess you like

Origin blog.csdn.net/wd4java/article/details/126655275