Sensor Value readout?

Hi, i wold like to know if there is a way to monitor sensor values from the Hardware in B2G already?

Can you be more specific?

<
https://ci5.googleusercontent.com/proxy/kY0yCMmDzLJk1E96ido5ikNAHe5zh52D3YphR1X2xsrOEU-akWaRVcb05gCxw4tWSLqENnwem5Tm-NtFWoV2NCt4Wc-JGW_Dh5C7jzgcntlxIgUGOQWTDe7tfUEQonn_B38KBuLWG02k6YjYTd1RxOikuyZQHm2_UG72p17U=s0-d-e1-ft#https://discourse.mozilla-community.org/user_avatar/discourse.mozilla-community.org/novski/45/4829_1.png>
Novski Ivan Hörler
July 8

Hi, i wold like to know if there is a way to monitor sensor values from
the Hardware in B2G already?

Proximity sensor values. Is it possible to view them someware?

https://encrypted.google.com/search?&q=mdn%20proximity

Does that mean that the information of sensors is not vueable on B2G in the moment, without developing a new a app for it?

it means: search and read the docs. there are APIs for this.

@Novski i think you are looking for this https://developer.mozilla.org/en-US/Apps/Fundamentals/gather_and_modify_data/Near_or_far_responding_to_proximity

Thank you kskarthik. All i whanted to know is if it already exists, because i don’t understand how to make a app yet. So that has to wait until i have gained some more skills. :grin:
But i think that could be a good lession for a rainy day.

1 Like