Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPII-884: Implement reading data from sensors within an Android platform #26

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

javihernandez
Copy link
Member

This is still a first implementation of this feature and can be tested with this KASPARNET's branch of universal

This pull requests adds the ability in the android implementation to report changes on the environmental data to the flow manager. Right now we're reporting changes about luminosity and environmental noise to the flow manager by making a PUT request to http://localhost:8081/environmentChanged, and according to this API contract

* For now, only added support for the light sensor
Changes:
* Polihing a few details around light sensor
* Adding noise sensor
fluid.registerNamespace("gpii.androidSensors");

gpii.androidSensors.getEndPoint = function () {
var androidSensors = bridge.load("net.gpii.AndroidSensorsImpl", thatall);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes more sense to cache this in a namespaced global rather than make repeated use of the bizarre "thatall" global. I assume that the implementation isn't so bizarre that it produces a different response for each call to bridge.load

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants