Top-level object that holds generic functions and sub-modules.
Namespaces
Members
-
<static> RAW
-
Constant identifying the IoT Sensor RAW project.
-
<static> SFL
-
Constant identifying the IoT Sensor SFL project.
Methods
-
<static> createInstance(type)
-
Public. Create an IoT Sensor instance.
Parameters:
Name Type Description type
string String with type of sensor.
Use constants evothings.iotsensor.SFL and evothings.iotsensor.RAW.Returns:
evothings.iotsensor.instance or null if an object of the requested type cannot be created.Example
// Create a new IoT Sensor SFL instance var iotsensor = evothings.iotsensor.createInstance(evothings.iotsensor.SFL);
-
<static> currentTime()
-
Returns current time using new Date() in a readable string
Returns:
- Current time in hh:MM:SS.sss format- Type
- string
Example
var time = evothings.iotsensor.currentTime(); console.log('Current time: ' + time);