public class IotpQuickstart2
extends java.lang.Object
temp
, humidity
and objectTemp
and random values.
The device type is iotsamples-edgent
and a random
device identifier is generated. Both are printed out when
the application starts.
A URL is also printed that allows viewing of the data as it received by the Quickstart service.
This sample demonstrates using the WIoTP API to initialize the IotpDevice connector as well as the ability to publish events using the WIoTP HTTP protocol.
Constructor and Description |
---|
IotpQuickstart2() |
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