Getting started with Wyliodrin SENSORS?

Step 1: Download and install the app

First you will need to download and install the app from the Google Play Store.

Step 2: Link your smartphone to your Wyliodrin account

Scan the QR code attached to your Wyliodrin account with your smartphone using the Wyliodrin Sensors app.

Step 3: Activate the sensors you want to use

Choose from the list of available sensors, the ones you want to send data to your Wyliodrin account.

Step 4. Integrate the received values in your app

Check the phone’s id in the application’s settings. You will use that in your applications.

Visual programming

Use the Sensors -> Mobile -> On sensor[] from mobile block to receive the values.

Python

Use the following code snippet:

sensorvalue = None
mobile_sensor = {}
my_phone_id = ‘phone_id’

def mobile_sensor_function__phone_id (sender, channel, error, message):
  global mobile_sensor
  jsonValues = json.loads(message)
  for key in jsonValues:
    if key in mobile_sensor:
      mobile_sensor[key](jsonValues[key])
openConnection("mobile:"+my_phone_id, mobile_sensor_function__phone_id_)

 

You can find more information on how to use Wyliodrin Sensors here.