Aller au contenu
  • billets
    23
  • commentaire
    0
  • vues
    411

New for FileMaker 17: GetSensor function

MainSpring

214 vues

22064879_xl-300x300.jpg

FileMaker 17 introduced the new GetSensor function as a new mobile function available for use in FileMaker Go apps. With this new function, you can gather sensor data from an iOS device and use it programmatically in your custom app.

While this is a good start, there’s still some device metadata and sensor data that is not available from the function. A few years ago, I released a metadata gathering app, CoreScope, that allows for more information to be gathered from the device. Due to my familiarity with iOS programming and sensors, I found some parts of FileMaker’s documentation on this function to be a little confusing. So, I dug deeper into Apple’s developer documentation to put together the below chart explaining in detail what each sensor reading represents.

Use these helpful tables in order to understand and use sensors with the GetSensor() function.

Interested in a deeper dive? Let me know in the comments, and I can link you to Apple’s documentation.

Configuration

Configuration-600x130.png

  

Battery sensor

BatterySensor1-600x304.png

Location sensor

(Note that if the optional accuracy and timeout parameters are not specified, a default accuracy of 100 meters and 10 seconds is used.)

LocationSensor-600x327.png

Attitude, speed & acceleration sensor

(Note that if the optional accuracy and timeout parameters are not specified, a default accuracy of 100 meters and 10 seconds is used.)

AttitudeSpeedAccelerationSensor1-516x600

Magnetic sensor

(Note that if the optional accuracy and timeout parameters are not specified, a default accuracy of 100 meters and 10 seconds is used.)

MagneticSensor.png

Step count sensor

(Note that if the optional second parameter is not specified, it returns the values measured since midnight of the current day. The sensor can be inaccurate if the user has not calibrated their phone’s step settings inside of health data and motion calibration. Also, returned measurements may be localized to the user’s iOS localization settings, eg. meters vs. feet.)

StepCountSensor.png

Air pressure sensor

AirPressureSensor1.png


Afficher la totalité du billet



0 Commentaire


Commentaires recommandés

Il n’y a aucun commentaire à afficher.

Créer un compte ou se connecter pour commenter

Vous devez être membre afin de pouvoir déposer un commentaire

Créer un compte

Créez un compte sur notre communauté. C’est facile !

Créer un nouveau compte

Se connecter

Vous avez déjà un compte ? Connectez-vous ici.

Connectez-vous maintenant
×