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 bar, your window should show a QR Code Generator button, a list of the devices associated with your account, and your device history:
It might be convenient to generate a QR code on the fly; if, for example, you soldered your Modulo onto a board and you can’t easily scan the code when you need to. 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 list shows all devices that belong to your account, including the devices shared with you. For each device, you’ll see:
|Name||This is the name the end-user will see in the Afero mobile app. You can edit the name here before publishing.|
|Device Type||The name and icon from the Device Type definition you created for this device.|
|Software Version||This 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 SW Version numbers will increase every time you publish, but the specific number of your “next version” is not dependent exclusively on your current version.|
|ID||The Association ID, which is the number in the QR code that appears on the label of your Modulo. It is used to associate your device with your account.|
|Status||The Bluetooth signal strength between ASR and your mobile device currently running the Afero mobile app.|
|Test||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 device list is a history of the activity (events) of all your devices between Afero in the past 24 hours. Events 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 (i.e., you’ll be able to watch the publish process here). To see activity for a specific device, use the Device Filter.
For each event you can see:
|Timestamp||The time when the activity occurred.|
|Attribute||If an attribute was changed by the activity, it is identified here using its 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!