Class TemperatureSenderDHT11


  • public class TemperatureSenderDHT11
    extends java.lang.Object
    TemperatureSenderDHT11 is a complimentary program to Thermometer to transmit data from a Pi with a DHTxx device attached. TemperatureSenderDHT11 sends the data via multicast packet to the Thermometer program. TemperatureSenderDHT11 is designed to be run repeatedly by cron but may be run from the command line for testing. The program has two command line options that are required, the location/description to be displayed with the temperature on the Thermometer program and the channel number. Valid channel numbers are 0 through 5. Spaces can be included in the location by enclosing the option with quotes (ie java -jar TemperatureSenderDHT11.jar "Living Room" 0).
    Version:
    0.11 - 4 January 2019
    Author:
    Knute Johnson
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String DATE
      Program date
      private static java.lang.String IPADDR
      Multicast IP address
      private static int PORT
      Destination port for multicast data packets
      private static java.lang.String VERSION
      Program version
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String... args)
      Program entry point, checks for valid command line arguments, reads the temperature data from the DHTxx device and sends that data to the Thermometer program.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TemperatureSenderDHT11

        public TemperatureSenderDHT11()
    • Method Detail

      • main

        public static void main​(java.lang.String... args)
        Program entry point, checks for valid command line arguments, reads the temperature data from the DHTxx device and sends that data to the Thermometer program.
        Parameters:
        args - command line arguments (see above)