itm / testbed-runtime

WISEBED Wireless Sensor Network Testbed Infrastructure Software
https://github.com/itm/testbed-runtime/wiki
15 stars 11 forks source link

Add node capabilities to DeviceConfig / DeviceDB #259

Closed danbim closed 11 years ago

danbim commented 11 years ago

As the WiseML self-description will be generated from the data in DeviceDB the DeviceConfig bean should include the nodes capabilities. Here's an example excerpt from the JSON representation:

"capability": [
  {
    "name": "urn:wisebed:node:capability:ir",
    "datatype": "integer",
    "unit": "lux",
    "default": "0"
  },
  {
    "name": "urn:wisebed:node:capability:humidity",
    "datatype": "integer",
    "unit": "raw",
    "default": "0"
  }
]