Keepalive Function; Websocket Function; Mqtt Function; Mqtt Function Introduction - Waveshare UART-WIFI232-B2 User Manual

Table of Contents

Advertisement

UART-WIFI232-B2 User Manual
(2) AT commands setting:
Enable or disable the Modbus polling feature, and enable the Modbus polling function.
AT+MODBPOLLEN=on/off
Set the polling interval for querying (50~65535) milliseconds, using 200ms as an example.
AT+MODBPOLLT=200

6.15 KEEPALIVE FUNCTION

With the addition of a Keepalive mechanism during TCP connections, UART-WIFI232-B2 can
promptly detect network anomalies and disconnect when there's a network issue. Once the network
is restored, it can swiftly reconnect to the server.

6.16 WEBSOCKET FUNCTION

This WIFI serial server can realize the function of websocketserver. It can make the serial port of
WIFI serial server interact with the web page in real time, instead of the earlier HTTPGET, POST and
PUT modes, and the response speed is faster. This WIFI serial server provides a corresponding
websocket test page for users to test, and the specific page is as follows: (The address of this page is
10.10.100.254/websocket.html).

6.17 MQTT FUNCTION

6.17.1 MQTT FUNCTION INTRODUCTION

MQTT is a protocol for message publishing//subscribe transmission based on the client servers.
The MQTT protocol is lightweight, simple, open, and easy to implement, which makes it highly
versatile and applicable in a wide range of scenarios.
The MQTT function settings of UART-WIFI232-B2 are highly flexible, allowing you to configure
almost all MQTT protocol-related connection parameters, publish topic parameters, and subscribe
topic parameters.
UART-WIFI232-B2 MQTT's publish topic modes include Pure Transparent Publish Mode (serial
port can transparently publish data to all topics), Special Identifier Publish Mode (serial port can
transparently publish data to specific topics using identifiers), and Custom Topic Publish Mode (serial
port can transparently publish data to specified topics).
Figure Modbus Polling Web Page Configuration Screenshot
75
www.waveshare.com

Advertisement

Table of Contents
loading

Table of Contents