Skip to content

Java PC GUI Setup

benpoon-microchip edited this page Aug 29, 2018 · 4 revisions

Java PC GUI is used to provide user sign-up, sign-in feature and register the board to the user account. User need to input the same account credentials when enable Alexa skill to control the registed device.

Apache Maven need to be installed to compile the Java PC application.
https://maven.apache.org/download.cgi

Java SE Development Kit (JDK) 8 need to be installed to run the Java PC application.
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Java PC GUI source code can be found in folder secure-wifi-board-java-desktop-app\

Configuration for the GUI

Open config.properties and input the AWS Cloud related setting:

POOL_ID=<Cognito_User_Pool_ID>
CLIENTAPP_ID=<Cognito_User_Pool_App_Client_ID>
FED_POOL_ID=<Cognito_User_Identity_ID>
CUSTOMDOMAIN=<Cognito_User_Pool_Domain_Name>
REGION=<Cognito_User_Pool_Region>

Steps to compile and run Java PC GUI:

  1. Go to folder secure-wifi-board-java-desktop-app\
  2. Execute build.bat
  3. Java execution file will be generate to target/Secure-WiFi-Board-CognitoUI-1.0-jar-with-dependencies.jar and copy to folder ProvisionScripts\
  4. To run the Java execution file, go to folder ProvisionScripts\ and input command "java -jar Secure-WiFi-Board-CognitoUI-1.0-jar-with-dependencies.jar"
  5. Below screen is shown: