This repository has been archived on 2025-01-25. You can view files and clone it, but cannot push or open issues or pull requests.
mr-iot/etc/devices.js
2018-12-17 19:20:06 +01:00

25 lines
399 B
JavaScript

// TODO: get data from a database
devices = {
simulation: {
addr: "localhost:8081",
name: "Test simulations",
type: "recever",
values: [
{
"name": "status",
"type": "number",
"max": 1
}
]
}
};
module.exports.get = function(deviceID){
if(devices.hasOwnProperty(deviceID)){
return devices[deviceID]
}else {
return false;
}
}