The final step in device Profile creation is publishing. When you publish your Profile using the Afero Profile Editor, several operations take place:
Do the following to prepare for publishing:
With the Afero Profile Editor opened to your project, and with Publish selected from the Navigation pane, your window should show a QR Code Generator button, a list of the devices associated with your account, and your device activity:
It might be convenient to generate a QR code on the fly. This would be helpful, for example, if you soldered your Afero module onto a board and made it inaccessible for subsequent scanning. To use the generator, click the QR Code Generator button. In the window that appears, type the Association ID, click Generate, and your code will appear. To save the code as a Scalable Vector Graphics (SVG) file, click the Save as SVG button. To generate your device’s QR code, you can also click the little QR code icon just to the right of your Association ID in the Developer Device table.
The first section lists all devices that belong to your account, including the devices shared with you. Note you can change the sort order of the information by clicking the column heading on which you want to control the sort.
For each device, you’ll see:
Checkbox | Use the checkbox(es) in the first column to select the device(s) to which you want to publish the active Profile. If you see a red exclamation mark(as shown above), it could mean:
Hover your cursor over the exclamation mark to reveal the popup with specific information. |
Friendly Name | This is the friendly device name the end-user will see in the Afero mobile app (and which they can edit in the mobile app). You can edit the name here before publishing: hover your cursor over the name and click once the pencil icon appears. Type the new name then click the checkmark to save. |
Device Type | The name and icon from the Device Type definition you created for this device. Note that if you change the Device Type Name on the Device Type window, the Publish window will not reflect the name change until after you publish the Profile to a device. You will need this name, after publishing, to submit a request to Afero for a factory programmer. |
Profile Version | This device Profile version number is unique among all devices and users and is automatically incremented when any new Profile is published by any user. This means that your Profile Version numbers will increase every time you publish, but the specific number of your “next version” is not dependent exclusively on your current version. Hover over the version number to also view the Bootloader and Firmware version numbers. You will need this version number, after publishing, to submit a request to Afero for a factory programmer. |
Assn ID | The Association ID, which is the number in the QR code that appears on the label of your Afero module. It is used to associate your device with your account. Click the QR code icon to open the QR Code Generator window. From there you can copy or edit the Association ID and regenerate the QR code if necessary. Be careful if you do this as the Assn ID must match the ID on the actual device. |
Status | The Bluetooth signal strength between the Afero module and your smartphone currently running the Afero mobile app. |
Test button | Click the Test button to open the Attribute Tester. From this window, click an attribute to open its value for editing. Any value changes you make are reflected in the Afero mobile app UI. |
Click a column heading to reorder or change the sort. Note that sorting works best on columns that display relatively static data, such as Name, Device Type, SW Version, and ID.
Below the Developer Devices is a list of the activity (events) of all your devices with Afero in real-time. Note that this is not a history; the activity you see begins when you first go to the Publish window. To see activity for a specific device, use the Device Filter.
Activities listed include attribute changes (e.g., you can watch the effect of a button-tap in the Afero mobile app that turns on an LED on your device) as well as operations in the Publish sequence, which means you’ll be able to watch the publish process here.
For each event you will see:
Timestamp | The time when the activity occurred. |
Attribute | If an attribute was changed by the activity, it is identified here using its name and unique numeric identifier. |
Value | If an attribute value was changed by the activity, the resulting value is shown here. |
Raw Value | The hex string representation of the changed attribute value. |
Once the new Control UI is in place, you should be able to use the controls to change attributes on the associated device.