Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

All information collected from sensor board should be available as a CoRE resource, mapped as below.

This mapping is created after the mote identifies the sensor board and starts to collect sensor data.

 

Well knows REST resources

 

GET /.well-known/core

DescriptionResponse
List of parameters as a link list interface</d>;rt="simple.dev";if="core.ll",
List of sensors parameters as a batch interface</s>;rt="simple.sen";if="core.b"

 

Parameters (link list)

 

GET /d

 
 
 
 
DescriptionExamplePossible Answers
Sensor Board Identification (summary)
GET /d
{ "itfv": "123", "model":"model_name", "id": "sensor_board_ID", "npts":10 }
Interface Version
GET /d/itfv
{ "itfv": "123" }
Model Name
GET /d/model
{ "model": "model_name" }
Manufacturer Name
GET /d/manuf
{ "manuf": "manufacturer name" }
Sensor Board ID
GET /d/id
{ "id": "sensor_board_ID" }
Hardware Revision
GET /d/hw_rev
{ "hw_rev": "hardware_revision" }
Display Capability
GET /d/has_dsp
{ "has_dsp": "yes" }
Battery Capability
GET /d/has_bat
{ "has_bat": "no" }
Number of Points
GET /d/npts
{ "npts": 10 }
Sensor Board Status
GET /d/brd_status
{ "status": 1 }
Sensor board Command (send)
PUT /d/cmd/cmd_id
{ "status": "status_result" }
Sensor board Command (answer)
GET /d/cmd
{ "result": "cmd_result" } 
Battery Status
GET /d/bat_status
{ "status": "Discharging" }
Battery Charge (0 to 100%)
GET /d/bat_charge
{ "charge": "75" }
Wireless Status
GET /d/wl_status
{ "status": "Connected" }
Wireless Strength
GET /d/wl_strength
{ "strength": "-10dBm" }
Display
PUT /d/dsp/line1
PUT /d/dsp/line1/line2
{ "result": 1 }

 

Sensors parameters (batch)


GET /s

DescriptionResourceAnswer
Get all sensor values 
GET /s
[ { "sensor1": val1 }, { "sensor2": val2 }, { "sensor3": val3 } ]
Get sensor1
GET /s/sensor1
{ "val": val1 }
Put sensor1
PUT /s/sensor1/val1
{ "result": 0 }


References


 

  • No labels