Giter Site home page Giter Site logo

demo-app's Introduction

Demo App for ActiveLook glasses

What is the purpose of this app ?

This app allows you to scan, connect and tests differents commands on your glasses.

How to compile the app ?

Android : Create a .env file at the root of the demo-app project folder. This file should contain the two lines below.

ACTIVELOOK_SDK_TOKEN = ""
ACTIVELOOK_CFG_PASSWORD = 0xDEADBEEF //The ActiveLook config password, if needed

Open the "android" folder with android studio. Connect a phone an launch the app

iOS : Create a file Config.xcconfig in the ios folder with the informations below.

ACTIVELOOK_SDK_TOKEN = 
ACTIVELOOK_CFG_PASSWORD = 0xDEADBEEF //The ActiveLook config password, if needed

Open the "ios" folder with Xcode. Connect a ios phone an launch the app

SDK Token

This field needs to be left blank by default.

The SDK Token & CFG Password are only useful for (and provided to) eyewear partners developing their own ActiveLook application. It allows the partner application to be authenticated by the ActiveLook update server and to update Firwmware and / or system configuration (ALooK) onto any ActiveLook-powered eyewear.

Leaving the field blank will allow app compilation without requiring an access to the update server.

demo-app's People

Contributors

activelook-dev avatar sylvainromillon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

demo-app's Issues

"connection to glasses timed out" error

When running the demo app on an iPhone SE the timer in the table view delegate fires resulting in a "connection to glasses timed out" message although my Engo 2 gets connected. I assume I do have the same issue with the Activelook app from the store which also does not work on this phone. I am using a kind of aged iPhone SE 1st gen for testing purposes. To make sure it is not an issue with the iPhone I wrote a simple app without using the SDK. With this simple app I can connect and send commands to the Engo 2 without any problems so I would assume it might be an issue with the SDK. Output from debug:

central manager did update state: 5
starting scan
In GlassesTableViewController: tableView line 90
connecting to glasses ENGO 2 021644
glass connected ENGO 2 021644
Stop Scan ...
initializing glasses
After initializing glasses
After centralManager
discovered service: Device Information
discovered service: Battery
discovered service: 0783B03E-8535-B5A0-7140-A304D2495CB7
central manager did connect to glasses ENGO 2 021644
In fixInDeviceCmdStack
After glasses.fixInDeviceCmdStack
In poll interval timer
connection to glasses timed out
disconnected from unknown glasses
onUpdateFailureCallback

Outdated SDK

The following code no longer works:

private var activeLook: ActiveLookSDK = ActiveLookSDK.shared

The code now is:

    public static func shared(token: String? = nil,
                              onUpdateStartCallback: StartClosureSignature? = nil,
                              onUpdateAvailableCallback: UpdateAvailableClosureSignature? = nil,
                              onUpdateProgressCallback: ProgressClosureSignature? = nil,
                              onUpdateSuccessCallback: SuccessClosureSignature? = nil,
                              onUpdateFailureCallback: FailureClosureSignature? = nil) throws -> ActiveLookSDK

and if you call it without parameters you get a

ActiveLookError.sdkInitMissingParameters

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.