Learn the specifics of developing a Device plugin.

Create the file structure

Set up a directory structure with the following files

├── src           
│   ├── view.xml           
├── 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

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"/>

Edit the LICENSE and files

Write the contents of the 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