Class TemperatureSenderDS18B20


  • public class TemperatureSenderDS18B20
    extends java.lang.Object
    TemperatureSenderDS18B20 is a complimentary program to Thermometer to transmit temperature data from a Pi with a DS18B20 device attached. TemperatureSenderDS18B20 sends the data via multicast packet to the Thermometer program. TemperatureSenderDS18B20 is designed to be run repeatedly by cron but may be run from the command line for testing. The program has three command line options that are required, the serial number of the the DS18B20 device (the leading zeros may be omitted), 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 may be included in the location by enclosing the option with quoes (ie java -jar TemperatureSenderDS18B20.jar 6774267 "Spare Room" 2).
    Version:
    0.10 - 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 DS18B20 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

      • TemperatureSenderDS18B20

        public TemperatureSenderDS18B20()
    • 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 DS18B20 device and sends that data to the Thermometer program.
        Parameters:
        args - command line arguments (see above)