Afero MCU Library / Arduino Library support for Afero Development boards
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples afLib3 R1.1 release - see https://developer.afero.io/RelNotes-afLib Jan 7, 2019
README.md afLib3 R1.1 release - see https://developer.afero.io/RelNotes-afLib Jan 7, 2019
af_command.c Initial checkin Aug 9, 2018
af_command.h Initial checkin Aug 9, 2018
af_lib.c afLib3 R1.1 release - see https://developer.afero.io/RelNotes-afLib Jan 7, 2019
af_lib.h afLib3 R1.1 release - see https://developer.afero.io/RelNotes-afLib Jan 7, 2019
af_logger.h Initial checkin Aug 9, 2018
af_mcu_ota.h Initial checkin Aug 9, 2018
af_module_commands.h Initial checkin Aug 9, 2018
af_module_states.h Initial checkin Aug 9, 2018
af_msg_types.h Initial checkin Aug 9, 2018
af_queue.c afLib3 R1.1 release - see https://developer.afero.io/RelNotes-afLib Jan 7, 2019
af_queue.h afLib3 R1.1 release - see https://developer.afero.io/RelNotes-afLib Jan 7, 2019
af_status_command.c Initial checkin Aug 9, 2018
af_status_command.h Initial checkin Aug 9, 2018
af_transport.h Initial checkin Aug 9, 2018
af_utils.c Initial checkin Aug 9, 2018
af_utils.h Initial checkin Aug 9, 2018
arduino_logger.cpp Initial checkin Aug 9, 2018
arduino_logger.h Initial checkin Aug 9, 2018
arduino_spi.cpp Initial checkin Aug 9, 2018
arduino_spi.h Initial checkin Aug 9, 2018
arduino_transport.cpp afLib3 R1.1 release - see https://developer.afero.io/RelNotes-afLib Jan 7, 2019
arduino_transport.h afLib3 R1.1 release - see https://developer.afero.io/RelNotes-afLib Jan 7, 2019
arduino_uart.cpp afLib3 R1.1 release - see https://developer.afero.io/RelNotes-afLib Jan 7, 2019
arduino_uart.h afLib3 R1.1 release - see https://developer.afero.io/RelNotes-afLib Jan 7, 2019
arduino_utils.cpp
hmacsha256.h Initial checkin Aug 9, 2018
keywords.txt Initial checkin Aug 9, 2018
sha2.c Initial checkin Aug 9, 2018
sha2.h Initial checkin Aug 9, 2018

README.md

Afero Secure Radio Arduino Library

afLib3 Version 1.1

Welcome

This library implements the SPI and UART protocols used to communicate between an MCU and the Afero Secure Radio Module. It provides a simple API for reading and writing attribute values from an MCU application.

This version of the library, called afLib3, supercedes and replaces previous Afero libraries named afLib and afLib2.

afLib3 differs significantly from previous versions by implementing a new more logical API, adding support for other MCUs and operating systems, and reducing several callback routines into a single callback.

However, afLib3 is also API compatible with afLib2. Your code running on afLib2 should not need to be updated to use this library, though updating your code to use the new APIs is strongly recommended for future compatibility.

Please Note: This new version of the Afero MCU Library, written in C, is intended to replace the older C++ version called simply afLib. You can have both the afLib and afLib3 packages installed at the same time, they are distinct from one another. Please use afLib3 for all new development, but afLib will remain available for compatibility with existing projects that use it.

AfLib3 is packaged as an Arduino-compatible library for ease of installing in the Arduino IDE. For other MCU platforms see the Afero Developer Github at https://github.com/aferodeveloper/.

Arduino Installation

  • If you are familiar with using git, you can use it to clone this directory into your Arduino installation. From a command line, change directories to your Aduino "libraries" folder ("Documents/Arduino/libraries" for Mac, "My Documents/Ardino/libraries" for Windows) and clone this project with "git clone https://github.com/aferodeveloper/afLib3.git"

  • If you don't use git, you can download this project from the "Clone or Download" button at the top of the page, then select "Download ZIP". Unzip the downloaded file "afLib3-master.zip" and it will create a folder called "afLib3-master". Rename this folder from "afLib3-master" to just "afLib3", then copy it to the Arduino/libraries folder. The folder must be named afLib3 and not afLib3-master for the Arduino sotware to properly recognize it.

  • After installation, restart the Arduino IDE if it was running.

Upgrading an existing Arduino Installation

  • If you've previously installed an older version of afLib3, delete the old folder under Arduino/libaries and then install this new version via the installation instructions above.

More Information

http://developer.afero.io

Release Notes

afLib3 1.1.306 1/07/19 Release Notes

  • changed signatures for af_lib_asr_has_capability() and af_lib_send_set_response() for consistency
  • Added ASR_STATE_RELINKED to indicate when ASR drops offline and reconnects.
  • Greatly simplified afBlink example app.
  • Fixed issue in example apps that caused Modulo-1 to not work properly.
  • Updated example apps for new “MCU update all” behavior in Firmware R2.1.1.
  • Removed reference to undefined RESET pin when using Arduino Uno.
  • Created example app profiles for Modulo-1B.
  • Removed obsolete BoE-bot example apps