Skip to content
This repository has been archived by the owner on Apr 28, 2021. It is now read-only.

iotbzh/DEPRECATED_helloworld-native-application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

helloworld-native-application

A application using binding example for AGL

Setup

git clone --recursive https://github.com/iotbzh/helloworld-native-application.git
cd helloworld-native-application

Build for AGL

#setup your build environement
. /xdt/sdk/environment-setup-aarch64-agl-linux
#build your application
./autobuild/agl/autobuild package

Build for 'native' Linux distros (Fedora, openSUSE, Debian, Ubuntu, ...)

./autobuild/linux/autobuild package

Deploy

AGL

export YOUR_BOARD_IP=192.168.1.X
export APP_NAME=helloworld-native-application
scp build/${APP_NAME}.wgt root@${YOUR_BOARD_IP}:/tmp
#install the widget
ssh root@${YOUR_BOARD_IP} afm-util install /tmp/${APP_NAME}.wgt
APP_VERSION=$(ssh root@${YOUR_BOARD_IP} afm-util list | grep ${APP_NAME}@ | cut -d"\"" -f4| cut -d"@" -f2)
#start the binder
ssh root@${YOUR_BOARD_IP} afm-util start ${APP_NAME}@${APP_VERSION}

TEST

AGL

export YOUR_BOARD_IP=192.168.1.X

#you can display the log from systemd journal
ssh root@${YOUR_BOARD_IP} journalctl -f

#you can display log from file
ssh root@${YOUR_BOARD_IP} cat /tmp/helloworld.log

#you can display the binder status
ssh root@${YOUR_BOARD_IP} afm-util ps

#you can stop the binder by remove file **helloworld.log**
ssh root@${YOUR_BOARD_IP} rm /tmp/helloworld.log

Activate authentification security

The security is actived in file conf.d/wgt/config.xml.in by:

  <feature name="urn:AGL:widget:required-permission">
  <param name="urn:AGL:permission:monitor:public:get" value="required" />
  </feature>

To disable security

  • remove the feature section named urn:AGL:widget:required-permission from the xml file conf.d/wgt/config.xml.in
  • rebuild your application

About

helloworld-native-application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •