Use Device Message Links to Read Device Data
Use device message links to receive data from devices that you registered in Oracle Internet of Things Cloud Service.
Before creating a creating a link to read your device messages, ensure you associated the device models for your devices to your IoT application.
After you save the device message link, the
classname
field now shows the automatically generated fully qualified named for the Java class that corresponds to this message format. You can use this Java class from the code of your analytics processor.
If you create a new analytics processor and select this link, the source template you generate from the analytics processor will contain a line of code that injects this link into the analytics processor. The instance attribute to access this link is named using the name of the link preceded by the prefix
input_
and is of the type JavaDStream<DATAMessage>
.