WLWebview Kiosk
Settings

Overview

Remote management and monitoring of your kiosk device

1. Introduction

Message Queueing Telemetry Transport (MQTT) is a lightweight messaging protocol for devices with limited resources. MQTT is built on top of TCP/IP and is ideal for machine-to-machine communication and the Internet of Things (IoT).

Webview Kiosk utilises the MQTT protocol to enable you to remotely

  • receive events
  • update app settings
  • perform actions via commands
  • request information

2. MQTT Broker

To communicate with Webview Kiosk, you will need an MQTT Broker. The broker acts as an intermediary entity (central hub) that routes messages between devices and applications.

Our recommendation for open source, self-hostable brokers (server) and clients (to send messages to Webview Kiosk) are:

  1. EMQX and MQTTX (or MQTTX Web)
  2. Eclipse Mosquitto and Home Assistant - see the Integration Guide

There are also public brokers you can use for testing purposes, such as

3. Global Variables

The following variables will be string-interpolated for supported settings, such as topic names and will payload:

Variable NameDescription
APP_INSTANCE_IDUnique identifier for the app instance.
USERNAMEMQTT username used for authentication.

To use variables in your settings, use the syntax ${YOUR_VARIABLE}, e.g.

wk/${USERNAME}/${APP_INSTANCE_ID}/command

which may evaluate to a string such as

wk/kiosk_user_01/b8378168-ca69-11f0-af20-5a93ec0e6f90/command

Some settings will support additional variables.

4. Enabling MQTT

On the MQTT settings page, change the value of the Enabled property to true. This will take effect for new app launches.

If you are currently in a disconnected state, you will need to manually click the Connect button after enabling this option (or simply restart the app).

Updated MQTT settings do not get applied immediately if you are already connected. Instead, you will need to reconnect by:

  • clicking the restart button in MQTT settings
  • manually restarting the application
  • send a Reconnect command

Default: false

5. Debug Logs

MQTT operations are recorded in the debug logs, which can be accessed from any MQTT settings screens. This includes:

  • connecting/connected/disconnect
  • subscribes
  • messages received or published
  • errors

A maximum of 100 messages will be stored for the duration of the app activity lifecycle. The logs will not persist between app restarts.

On this page