mirror of
				https://github.com/eclipse/upm.git
				synced 2025-11-04 09:05:34 +03:00 
			
		
		
		
	JAVA: Unified Java Example names
Unified all Java examples to *match* <LIBRARY>[_otherstuf]_Example.java.
Note, a handful of the examples have a pseudo-random string for the
first component (see FlexSensor_Example.java, ideally this would be
Flex_Example.java).
This commit allows for quick development on a single sensor library
since a -DMODULE_LIST=mysensorlib now works with Java examples
(previously Java examples would fail generation when using
MODULE_LIST).
    * Renamed examples
    * Updated class names
    * Updated library descriptor .json files
    * Updated sample mapping file
TODO: Make this work like the C/C++ examples - grab the target library
name from the filename and grab all dependencies from that target
library.  Fix the handful of example names which don't conform.
Signed-off-by: Noel Eck <noel.eck@intel.com>
			
			
This commit is contained in:
		@@ -1,37 +1,37 @@
 | 
			
		||||
{
 | 
			
		||||
    "Library": "hka5",
 | 
			
		||||
    "Description": "API for the DFRobot Laser Particulate Matter (PM) Sensor",
 | 
			
		||||
    "Sensor Class":
 | 
			
		||||
    {
 | 
			
		||||
        "HKA5":
 | 
			
		||||
        {
 | 
			
		||||
            "Name": "DFRobot Laser Particulate Matter (PM) Sensor",
 | 
			
		||||
            "Description": "This driver was tested with a DFRobot Laser PM2.5 Sensor.  It connects to a UART at 9600 baud.  This is the only baud rate supported.  It optionally supports Reset and Set/Sleep gpios as well.",
 | 
			
		||||
            "Aliases": ["hka5"],
 | 
			
		||||
            "Categories": ["gaseous"],
 | 
			
		||||
            "Connections": ["gpio", "uart"],
 | 
			
		||||
            "Project Type": ["environmental", "prototyping"],
 | 
			
		||||
            "Manufacturers": ["dfrobot"],
 | 
			
		||||
            "Kits": [],
 | 
			
		||||
            "Examples":
 | 
			
		||||
            {
 | 
			
		||||
                "Java": ["HKA5_Example.java"],
 | 
			
		||||
                "Python": ["hka5.py"],
 | 
			
		||||
                "Node.js": ["hka5.js"],
 | 
			
		||||
                "C++": ["hka5.cxx"],
 | 
			
		||||
                "C": ["hka5.c"]
 | 
			
		||||
            },
 | 
			
		||||
            "Specifications":
 | 
			
		||||
            {
 | 
			
		||||
                "Operating Voltage": {"unit": "V", "low": 3.3, "high": 5},
 | 
			
		||||
                "Operating Current": {"unit": "mA", "typ": 10}
 | 
			
		||||
            },
 | 
			
		||||
            "Urls" :
 | 
			
		||||
            {
 | 
			
		||||
                "Product Pages": ["https://www.dfrobot.com/wiki/index.php/DFRobot_LM35_Linear_Temperature_Sensor_(SKU:DFR0023)"],
 | 
			
		||||
                "Datasheets": ["http://image.dfrobot.com/image/data/DFR0023/DFR0023_Datasheet.pdf"],
 | 
			
		||||
                "Schematics": []
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
{
 | 
			
		||||
    "Library": "hka5",
 | 
			
		||||
    "Description": "API for the DFRobot Laser Particulate Matter (PM) Sensor",
 | 
			
		||||
    "Sensor Class":
 | 
			
		||||
    {
 | 
			
		||||
        "HKA5":
 | 
			
		||||
        {
 | 
			
		||||
            "Name": "DFRobot Laser Particulate Matter (PM) Sensor",
 | 
			
		||||
            "Description": "This driver was tested with a DFRobot Laser PM2.5 Sensor.  It connects to a UART at 9600 baud.  This is the only baud rate supported.  It optionally supports Reset and Set/Sleep gpios as well.",
 | 
			
		||||
            "Aliases": ["hka5"],
 | 
			
		||||
            "Categories": ["gaseous"],
 | 
			
		||||
            "Connections": ["gpio", "uart"],
 | 
			
		||||
            "Project Type": ["environmental", "prototyping"],
 | 
			
		||||
            "Manufacturers": ["dfrobot"],
 | 
			
		||||
            "Kits": [],
 | 
			
		||||
            "Examples":
 | 
			
		||||
            {
 | 
			
		||||
                "Java": ["HKA5_Example.java"],
 | 
			
		||||
                "Python": ["hka5.py"],
 | 
			
		||||
                "Node.js": ["hka5.js"],
 | 
			
		||||
                "C++": ["hka5.cxx"],
 | 
			
		||||
                "C": ["hka5.c"]
 | 
			
		||||
            },
 | 
			
		||||
            "Specifications":
 | 
			
		||||
            {
 | 
			
		||||
                "Operating Voltage": {"unit": "V", "low": 3.3, "high": 5},
 | 
			
		||||
                "Operating Current": {"unit": "mA", "typ": 10}
 | 
			
		||||
            },
 | 
			
		||||
            "Urls" :
 | 
			
		||||
            {
 | 
			
		||||
                "Product Pages": ["https://www.dfrobot.com/wiki/index.php/DFRobot_LM35_Linear_Temperature_Sensor_(SKU:DFR0023)"],
 | 
			
		||||
                "Datasheets": ["http://image.dfrobot.com/image/data/DFR0023/DFR0023_Datasheet.pdf"],
 | 
			
		||||
                "Schematics": []
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user