IoT: Using MiniFi Java Agent to Send MQTT Messages from Devices Example NVidia Jetson TX1 with Apache MXNet
Using MQTT From MiniFi Java Agent
From a standard Apache NiFi 1.5 download.
Copy
- nifi-standard-services-api-nar-1.5.0.3.1.1.0-35.nar
- nifi-mqtt-nar-1.5.0.3.1.1.0-35.nar
To minifi 0.40. lib directory.
PublishMQTT
Publish Sensor Data Via MQTT

This is our example MiniFi flow. We can drop out the GetFile (to grab images) and push to NiFi Flow if we just want to do a simple MQTT use case.

I am using CloudMQTT, you can use any MQTT broker like Mosquitto or HiveMQ.
Ingest in Apache NiFi 1.5

We can process data from MQTT and/or standard Apache NiFi S2S HTTPS.

Processing continues as regular. I add another route for mqtt source.
References:
If you are doing SSL, see https://community.hortonworks.com/articles/47854/accessing-facebook-page-data-from-apache-nifi.html

