Files
sensorapi/utilities/commands.js
T
2023-03-08 16:17:02 +01:00

23 lines
885 B
JavaScript

// Command table for http calls
import * as getData from "../actions/getsensorData.js"
import * as getProps from "../actions/getproperties.js"
import * as getAKWs from "../actions/getAKWData.js"
import * as holAddr from "../actions/getaddress.js"
import * as radioact from "../sensorspecials/radioact.js"
import * as noise from "../sensorspecials/noise.js"
const cmdTable = [
{cmd: 'getactdata', func: getData.getActData},
{cmd: 'getlongavg', func: getData.getLongAvg},
{cmd: 'getavgdata', func: getData.getAvgData},
{cmd: 'getoneproperty', func: getProps.getOneProperty},
{cmd: 'getakwdata', func: getAKWs.getakwdata},
{cmd: 'getaddress', func: holAddr.getAddress},
{cmd: 'getradiodata', func: radioact.getRadioData},
{cmd: 'getnoisedata', func: noise.getNoiseData},
{cmd: 'getsensordata', func: getData.getSensorData}
]
export default cmdTable