这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@PeratX
Copy link

@PeratX PeratX commented Jul 25, 2017

Now you can execute ./../usr/libexec/termux-api SensorProximity in ~ to get the proximity sensor's data.
If you have accepted my coding format, I can implement more sensors.

Sensors available:

  • Accelerometer
  • Ambient Temperature
  • Light
  • Releative Humidity
  • Pressure
  • Proximity

#58 #59 & README Todo list

@PeratX
Copy link
Author

PeratX commented Jul 28, 2017

@fornwall Please have a review. Thanks.

@fornwall
Copy link
Member

Interesting!

About TermuxAPI extends Application and calling sensorAPI = new SensorAPI(this); in the application onCreated(): This will always cause the sensor being monitored continuously as soon as the app starts, even if no sensor API call is used. Would it be possible to change it to only listen for a sensor event when the API request comes in, and the cancel the listening when the desired sensor event is received?

@PeratX
Copy link
Author

PeratX commented Jul 29, 2017

@PeratX PeratX closed this Sep 17, 2017
@Auxilus Auxilus mentioned this pull request Oct 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants