Once you are set up for development, you are ready to begin working on your project. Each project developed to run within the Afero ecosystem is unique. You might rely solely on Afero Secure Radio (ASR) for processing and control, you might require hardware and software development for an in-product MCU that works with ASR, or you might be developing an Afero Secure Hub prototype.
Whatever your goal, you will start by creating a project using the Afero Profile Editor. This user guide steps you through everything you need to know to get started:
But first, read the next few sections to get an introduction to device profiles and the Afero Profile Editor.
You use the Profile Editor to create "device types", which include device names and descriptions. This is the first step in creating a device profile, although technically the device type is not part of the device profile.
All projects require the definition of the communication interface between the Afero Platform and the device. That communication interface contains two parts:
Device Attribute Definition - A set of attributes whose values describe and control the state of your device. Attributes are specified in terms of function, data type, and read/write accessibility. For example, a thermostat would likely have the current room temperature as an attribute. Getting and setting attributes via the Afero Cloud is the heart of communication between the end-user and your device.
Mobile App UI Definition - Together with the communication interface, all projects must specify a user interface. After defining an attribute and giving it meaning, you must assign the attribute a standard presentation, which describes how it is represented to the end-user on the screen of the Afero mobile app.
We refer to these combined definitions as the Device Profile, or simply the Profile.
At any time during development, it’s possible to check your project into a revision control system, share it, or import it for use as a template for another project.
The tool you will use to define your Device Profiles is the Afero Profile Editor. The Profile Editor is available to all Afero partner-developers and can be downloaded for either Windows or macOS. For system requirements, go to the Electron Supported Platforms page.
Chrome app users: If you were previously using the Afero Profile Editor Chrome app, remove the Chrome app by going to
chrome://extensions/ in your browser, finding the Afero Profile Editor entry, then clicking the trash icon to the right.
The Profile Editor takes care of the following:
Note that during project development you do need an active network connection. This is so Afero can provide checks against creating duplicate Device Types, refresh access tokens, and ensure integrity of the rules and notifications you define. If you do lose connectivity, the Profile Editor will notify you.
An Afero project is similar to any development environment project; essentially, it’s a container for source files, output files, and a manifest that holds it all together:
Project files are complete and saved locally. This has a few practical implications:
Use your preferred source control system. Since all files are stored locally and the files comprising a project are all common types (text, image), your projects require no special treatment when used with a source control system. You are encouraged to use your preferred source control system to manage changes within your projects.
You can freely copy and share projects. Thanks to the simple structure of a Profile Editor project, you can freely duplicate projects, share them, or import one as a template to start another.
To delete a project, simply delete the project directory through your file system.
Avoid making edits directly on project files with tools other than the Afero Profile Editor. If you do, normal consistency checks and validation are bypassed, which could cause unexpected results.