public class IotpDeviceSample
extends java.lang.Object
Use IotpAppClient to print published events and generate a command (start this app before running IotpAppClient).
This sample demonstrates:
This connects to your IBM Watson IoT Platform service as the Device defined in a device config file. The file format is the standard one for IBM Watson IoT Platform.
Note, the config file also contains some additional information for this application. A sample iot-device-sample.cfg is in the scripts/connectors/iotp directory.
Constructor and Description |
---|
IotpDeviceSample() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
Copyright © 2017 The Apache Software Foundation. All Rights Reserved - 4744f56-20170226-1707