Device

Learn the specifics of developing a Device plugin.

Create the file structure

Set up a directory structure with the following files

├── src           
│   ├── view.xml           
├── LICENSE
├── README.md
├── manifest.toml

Edit the manifest.toml file

Fill this file with proper configuration according to the Device section within the Private Plugins page. Based on that, the manifest should look like:

manifest_version = 2.0

[settings]
version = "0.0.1"
plugin_type = "device"
license_name = "MIT license"
categories = ["End Device"]
filters = {brand = ["Advantech"], connectivity = ["Ethernet"]}

Edit the view.xml file

For the moment given, this file is not fully implemented for Device plugin, so it is not relevant at all for this plugin type, however it should contain dummy, albeit valid data so the plugin can be deployed. For this reason, you can use the following view.xml file on your Device plugin development as dummy file:

<form name="formName">
    <group name="ubidotsInformation">
        <group name="fieldToken">
            <label name="labelToken">Ubidots Token</label>
            <token name="token" placeholder="Select Token"/>
        </group>
    </group>
</form>

Edit the LICENSE and README.md files

Write the contents of the README.md and LICENSE files.

Compressing the files

Compress the files in zip format from the root of the file structure, not the parent folder.

Last updated