====== Sensor Layer (iotSensor) ====== The Sensor layer provides an emulated IoT sensor. It must be deployed on top of an HTTP, MQTT, UDP, IP, AWS, Azure or CoAP layer. ===== Sensor Layer Configuration Parameters ===== ^ Parameter^ Type^ Description^ | Alias| String| | | Debug Log Level| Number| Debug Level| | Dependencies| String| Other dependencies to this element| | Destination Peer| Number| | | Event Filter| String| Filter of Event| | Exact Match| Boolean| | | Max Event Queue Size| Number| Maximum Queue Size| | Name| String| Component Name| | No Events| Boolean| | | Passthrough| Boolean| High-to-Low Layer Passthrough| | Raw Data To Inject| String| Data Packet to Inject| | Raw Dst L2 To Inject| String| Destination L2 Address| | Raw Dst L3 To Inject| String| Destination L3 Address| | Raw Dst L4 To Inject| String| Destination L4 Address| | Refresh Timer| Number| | | Request Timeout| Number| | | Save Dynamic Config| Boolean| | | Sensor List| Number| List of Sensors| | Show Commands| Boolean| Show Commands| | Show Events| Boolean| Show Events| | Watch| Boolean| Watch Layer| ===== Sensor Layer Functions ===== ^ Function^ Type^ Description^ | getIotsensorAllowBlockingEvent(layer)| getter| Get "Allow Blocking Event" Parameter| | getIotsensorBlocked(layer)| getter| Get "Blocked" Parameter| | getIotsensorDebugLogLevel(layer)| getter| Get "Debug Log Level" Parameter| | getIotsensorDestinationPeer(layer)| getter| Get "Destination Peer" Parameter| | getIotsensorEnableJSON(layer)| getter| Get "Enable JSON" Parameter| | getIotsensorList(layer)| getter| Get "List" Parameter| | getIotsensorMaxInstances(layer)| getter| Get "Max Instances" Parameter| | getIotsensorNoEvents(layer)| getter| Get "No Events" Parameter| | getIotsensorPassthrough(layer)| getter| Get "Passthrough" Parameter| | getIotsensorRefreshTimer(layer)| getter| Get "Refresh Timer" Parameter| | getIotsensorWatch(layer)| getter| Get "Watch" Parameter| | getStatsIotsensorAvailableInstances(layer)| getter| Get "Available Instances" Parameter| | getStatsIotsensorDownstreamLastPacket(layer)| getter| Get "Downstream Last Packet" Parameter| | getStatsIotsensorDownstreamPacketCount(layer)| getter| Get "Downstream Packet Count" Parameter| | getStatsIotsensorMaxDownstreamDelay(layer)| getter| Get "Max Downstream Delay" Parameter| | getStatsIotsensorMaxUpstreamDelay(layer)| getter| Get "Max Upstream Delay" Parameter| | getStatsIotsensorMeanDownstreamDelay(layer)| getter| Get "Mean Downstream Delay" Parameter| | getStatsIotsensorMeanUpstreamDelay(layer)| getter| Get "Mean Upstream Delay" Parameter| | getStatsIotsensorMinDownstreamDelay(layer)| getter| Get "Min Downstream Delay" Parameter| | getStatsIotsensorMinUpstreamDelay(layer)| getter| Get "Min Upstream Delay" Parameter| | getStatsIotsensorName(layer)| getter| Get "Name" Parameter| | getStatsIotsensorRateBpsDownstream(layer)| getter| Get "Rate Bps Downstream" Parameter| | getStatsIotsensorRateBpsUpstream(layer)| getter| Get "Rate Bps Upstream" Parameter| | getStatsIotsensorTimestampIn(layer)| getter| Get "Timestamp In" Parameter| | getStatsIotsensorTimestampOut(layer)| getter| Get "Timestamp Out" Parameter| | getStatsIotsensorType(layer)| getter| Get "Type" Parameter| | getStatsIotsensorUpstreamLastPacket(layer)| getter| Get "Upstream Last Packet" Parameter| | getStatsIotsensorUpstreamPacketCount(layer)| getter| Get "Upstream Packet Count" Parameter| | getStatsIotsensorVarianceDownstreamDelay(layer)| getter| Get "Variance Downstream Delay" Parameter| | getStatsIotsensorVarianceUpstreamDelay(layer)| getter| Get "Variance Upstream Delay" Parameter| | iotSensorAddUri(layer,uri,delta)| function| Add URI| | iotSensorClear(layer)| function| Clear| | iotSensorRemoveUri(layer,uri)| function| Remove URI| | iotSensorUpdate(layer)| function| Update| | setIotsensorAllowBlockingEvent(layer,value)| setter| Set "Allow Blocking Event" Parameter| | setIotsensorBlocked(layer,value)| setter| Set "Blocked" Parameter| | setIotsensorDebugLogLevel(layer,value)| setter| Set "Debug Log Level" Parameter| | setIotsensorEnableJSON(layer,value)| setter| Set "Enable JSON" Parameter| | setIotsensorList(layer,value)| setter| Set "List" Parameter| | setIotsensorNoEvents(layer,value)| setter| Set "No Events" Parameter| | setIotsensorPassthrough(layer,value)| setter| Set "Passthrough" Parameter| | setIotsensorRefreshTimer(layer,value)| setter| Set "Refresh Timer" Parameter| | setIotsensorWatch(layer,value)| setter| Set "Watch" Parameter| ===== Sensor Layer Functions ===== ^ Function^ Type^ Description^ | getStatsIotsensorAvailableInstances(layer)| getter| Get "Available Instances" Parameter| | getStatsIotsensorDownstreamLastPacket(layer)| getter| Get "Downstream Last Packet" Parameter| | getStatsIotsensorDownstreamPacketCount(layer)| getter| Get "Downstream Packet Count" Parameter| | getStatsIotsensorMaxDownstreamDelay(layer)| getter| Get "Max Downstream Delay" Parameter| | getStatsIotsensorMaxUpstreamDelay(layer)| getter| Get "Max Upstream Delay" Parameter| | getStatsIotsensorMeanDownstreamDelay(layer)| getter| Get "Mean Downstream Delay" Parameter| | getStatsIotsensorMeanUpstreamDelay(layer)| getter| Get "Mean Upstream Delay" Parameter| | getStatsIotsensorMinDownstreamDelay(layer)| getter| Get "Min Downstream Delay" Parameter| | getStatsIotsensorMinUpstreamDelay(layer)| getter| Get "Min Upstream Delay" Parameter| | getStatsIotsensorName(layer)| getter| Get "Name" Parameter| | getStatsIotsensorRateBpsDownstream(layer)| getter| Get "Rate Bps Downstream" Parameter| | getStatsIotsensorRateBpsUpstream(layer)| getter| Get "Rate Bps Upstream" Parameter| | getStatsIotsensorTimestampIn(layer)| getter| Get "Timestamp In" Parameter| | getStatsIotsensorTimestampOut(layer)| getter| Get "Timestamp Out" Parameter| | getStatsIotsensorType(layer)| getter| Get "Type" Parameter| | getStatsIotsensorUpstreamLastPacket(layer)| getter| Get "Upstream Last Packet" Parameter| | getStatsIotsensorUpstreamPacketCount(layer)| getter| Get "Upstream Packet Count" Parameter| | getStatsIotsensorVarianceDownstreamDelay(layer)| getter| Get "Variance Downstream Delay" Parameter| | getStatsIotsensorVarianceUpstreamDelay(layer)| getter| Get "Variance Upstream Delay" Parameter| | getiotsensorAllowBlockingEvent(layer)| getter| Get "Allow Blocking Event" Parameter| | getiotsensorBlocked(layer)| getter| Get "Blocked" Parameter| | getiotsensorDebugLogLevel(layer)| getter| Get "Debug Log Level" Parameter| | getiotsensorDestinationPeer(layer)| getter| Get "Destination Peer" Parameter| | getiotsensorEnableJSON(layer)| getter| Get "Enable JSON" Parameter| | getiotsensorList(layer)| getter| Get "List" Parameter| | getiotsensorMaxInstances(layer)| getter| Get "Max Instances" Parameter| | getiotsensorNoEvents(layer)| getter| Get "No Events" Parameter| | getiotsensorPassthrough(layer)| getter| Get "Passthrough" Parameter| | getiotsensorRefreshTimer(layer)| getter| Get "Refresh Timer" Parameter| | getiotsensorWatch(layer)| getter| Get "Watch" Parameter| | iotSensorAddUri(layer,uri,delta)| function| Add URI| | iotSensorClear(layer)| function| Clear| | iotSensorRemoveUri(layer,uri)| function| Remove URI| | iotSensorUpdate(layer)| function| Update| | setiotsensorAllowBlockingEvent(layer,value)| setter| Set "Allow Blocking Event" Parameter| | setiotsensorBlocked(layer,value)| setter| Set "Blocked" Parameter| | setiotsensorDebugLogLevel(layer,value)| setter| Set "Debug Log Level" Parameter| | setiotsensorEnableJSON(layer,value)| setter| Set "Enable JSON" Parameter| | setiotsensorList(layer,value)| setter| Set "List" Parameter| | setiotsensorNoEvents(layer,value)| setter| Set "No Events" Parameter| | setiotsensorPassthrough(layer,value)| setter| Set "Passthrough" Parameter| | setiotsensorRefreshTimer(layer,value)| setter| Set "Refresh Timer" Parameter| | setiotsensorWatch(layer,value)| setter| Set "Watch" Parameter|