SPL File quickstart.spl
Specialized toolkits - release 4.3.1.0-prod20190605 > com.ibm.streamsx.iot 1.2.0 > com.ibm.streamsx.iot.watson.quickstart > quickstart.spl
Content
- Operators
-
- Quickstart: Quickstart application that subscribes to a single quickstart device's events.
- QuickstartDeviceEvents: Subscribe to a device's events for Quickstart.
- Types
-
- QSData: Tuple type that matches the Quickstart device simulator event data.
Composites
composite Quickstart
Quickstart application that subscribes to a single quickstart device's events.
This application is very simple in that it just produces a stream of events from the quickstart device. The data may be viewed using IBM Streams views in Streams Studio or Streams console. This is intended as a way to explore IBM Watson IoT Platform and IBM Streams integration.
- RawEvents - JSON device events produced by com.ibm.streamsx.iot.watson::DeviceEvents.
- ExtractedEvents - QSData device events produced by com.ibm.streamsx.iot::DeviceEventExtractData.
Additional functionality may be added in the future.
The submission time parameter deviceId defines the device being monitored.
composite QuickstartDeviceEvents(output stream<DeviceEvent> Events)
Subscribe to a device's events for Quickstart.
This operator subscribes to the MQTT topic:
iot-2/type/+/id/deviceId/evt/+/fmt/json
Parameters
- deviceId: Subscribe to a device's events.
Output Ports
- Events: Stream of device events.
Types
QSData
Tuple type that matches the Quickstart device simulator event data. This is used as the dataType parameter in an invocation of com.ibm.streamsx.iot::DeviceEventExtractData.
QSData = tuple<float64 temp, float64 humidity, float64 objectTemp>;