Skip to content
helloworld-native-application
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
conf.d app-templates migration to cmake module Nov 6, 2018
helloworld-native-application
.gitignore
CMakeLists.txt
README.md

README.md

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
./conf.d/autobuild/agl/autobuild package

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

./conf.d/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 bender
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 bender status
ssh root@${YOUR_BOARD_IP} afm-util ps

#you can stop the bender 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
You can’t perform that action at this time.