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.
All projects require the definition of the communication interface between the Afero Platform and the device. That communication interface contains three parts:
Device Type Definition - The device name and description.
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:
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:
No active network connection is required during project development.
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.