Демо-приложение для Android/en — различия между версиями

Материал из WebHMI Wiki
Перейти к: навигация, поиск
(Новая страница: «If the capabilities of the WebHMI web interface are either redundant or inadequate, then you can write your application that will interact with your automation sy…»)
(Новая страница: «As an example, we developed a small Android application. It allows you to turn on / off the lamp in our demo-suitcase and displays the position of the knob on the…»)
Строка 3: Строка 3:
 
If the capabilities of the WebHMI web interface are either redundant or inadequate, then you can write your application that will interact with your automation system through the WebHMI API.
 
If the capabilities of the WebHMI web interface are either redundant or inadequate, then you can write your application that will interact with your automation system through the WebHMI API.
  
В качестве примера, мы разработали небольшое Android-приложение. Оно позволяет включить/выключить лампу в нашем демо-чемодане и отображает положение ручки на потенциометре.
+
As an example, we developed a small Android application. It allows you to turn on / off the lamp in our demo-suitcase and displays the position of the knob on the potentiometer.
  
 
{{#evt:
 
{{#evt:

Версия 11:58, 1 марта 2018

Andoird-demo-app.jpeg

If the capabilities of the WebHMI web interface are either redundant or inadequate, then you can write your application that will interact with your automation system through the WebHMI API.

As an example, we developed a small Android application. It allows you to turn on / off the lamp in our demo-suitcase and displays the position of the knob on the potentiometer.

В приложении предусмотрена возможность указать:

  • IP-адрес или hostname WebHMI
  • API Key
  • паузу между запросами для чтения текущих значений регистров
  • ID регистра для кнопки
  • ID регистра для кругового индикатора
  • возможно отключить звуковой щелчек при нажатии на кнопку

Demo-app-settings.png

Вы можете как скачать само приложение и попробовать его работу с вашим WebHMI, так и скачать исходные коды проекта для быстрого старта при разарботке вашего собственного приложения.

Скачать APK-файл: Медиа:Webhmi_Demo_App.zip

Скачать исходные файлы проекта: Медиа:WebHMI_Demo_App_Sources.zip