Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Internet of things with Intel Galileo

You're reading from   Internet of things with Intel Galileo Employ the Intel Galileo board to design a world of smarter technology for your home

Arrow left icon
Product type Paperback
Published in Jul 2015
Publisher
ISBN-13 9781782174585
Length 212 pages
Edition 1st Edition
Tools
Arrow right icon
Toc

Table of Contents (12) Chapters Close

Preface 1. Introducing Galileo 2. Rediscovering the Arduino IDE FREE CHAPTER 3. Monitoring the Board Temperature 4. Creating a Motion Sensing Light 5. Intel IoT Developer Kit Tools 6. Building an Irrigation System 7. Creating Christmas Light Effects 8. The Intel XDK IoT Edition 9. Developing an IoT Quiz 10. Integrating with Muzzley Index

Creating the companion app


Now, let's take a look at the mobile project. From the PACKT publishing downloaded code, open the project IoT-Quiz_client.xdk, located inside the folder with the same name.

This project contains the mobile companion app, built using HTML5 and Cordova, and also with the help of the Intel App Framework (http://app-framework-software.intel.com/api.php).

Interface

Using the drag and drop visual editor, we created the following page structure:

Each of the following "pages" were built for specific game events:

  • #mainpage: This is the landing page. This view displays the form to insert the Galileo Socket.IO server IP address.

  • #join_game: In this view, we'll enter our name. After submitting it, we'll join the game or be alerted that the game has already started.

  • #waiting_players: It is displayed while a player is waiting for the game to start.

  • #question_view: Here, questions and answer options will be displayed.

  • #scores: This last page lists the players' game scores.

All the HTML...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image