Hi,
based on previous Analog Read Example and Analog Read Example using Ethernet extended the solution by using the Arduino Ethernet Shield to publish the temperature from the Arduino to a B4J Server via MQTT.
Full project (with comments) attached.
NOTE
Tested also on an Android MQTT Client by connecting to the B4J server and subscribing to topic temperature
based on previous Analog Read Example and Analog Read Example using Ethernet extended the solution by using the Arduino Ethernet Shield to publish the temperature from the Arduino to a B4J Server via MQTT.
Full project (with comments) attached.
NOTE
Tested also on an Android MQTT Client by connecting to the B4J server and subscribing to topic temperature
Attachments
Last edited: