Working with SENSORS

* In this section JWT Toke is necessaire

SENSOR_INFO return information SENSOR device

JWT Token needed

There are many mode to search sensors

data = {uuid: 'uuid of sensor'}

Or

data = {serial: 'Serial number of 1CW', society_uuid: 'dba1d604-4f41-49a0-xxxx-xxxxxxxxxxxx'}

curl -X POST "https://app.sequor.it/producerApi/api/v0/production/sensor_info" -d {serial: '1234567890'} -H "Content-Type: application/json"
The result is a "Bearer Token"

Like this:

{"code":"1234567890", uuid: '', description: '', std: '', cat: '', version: '1', revision: '1', specify: '....', type: 'XML'}


Rails Example
data = {uuid: 'uuid of device'}
@token = RestClient.post('https://app.sequor.it/producerApi/api/v0/production/sensor_info', data.to_json, content_type: 'application/json', accept: :json, authorization: @token)