Skip to main content
Skip table of contents

Android Panels - Kiosk Mode - Emergency shutdown of the Kiosk mode by Rest API

This article explains how to remotely or in emergency shut down the Kiosk mode, when an access password is lost or reset, without a need to change Android system settings.

1. Configuring a query in the Postman app

First, go to: https://www.postman.com/downloads/ , download the Postman app, and set up a user account (although this step is not strictly required). Then, go to File/Settings and set the ‘SSL certificate verification’ to off.

image-20240115-084130.png

Figure 1. Settings window in the Postman app

Next, click New and select the Request option. In a pop-up window select the http option.

image-20240115-084237.png

Figure 2. Pop-up - creating a new query

The following step is to create a query that will be sent to the device. Select the POST option and enter the command including the IP address and communication port, for example, https://192.168.1.130:5580/unlock. In the Authorization tab, select the Basic Auth option and provide username and password. Default credentials for authorization are: admin/password. Having provided the command and credentials, click the Send button and send the command to the device.

image-20240115-090405.png

Figure 3. Correct command

After sending this command, the user gains access to the iC SmartView settings and the Kiosk mode is switched off.

2. Configuring the HTTP request in Niagara

Sending commands to the API service in Android panels can also be done in Niagara. For this purpose, use the httpClient.jar module.

In the Palette window, search for the httpClient and add the HttpClient component to the station. Tehn, configure the component as described in section 1.

image-20240115-095032.png

Figure 4. Correctly configured HttpClient component

Confirm changes with the Save button. To send the command, invoke the Send action manually or using logic components in Niagara.

image-20240115-095247.png

Figure 5. The Send action in the HttpClient component

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.