Creating an AppZoneC static library

Users can create static libraries using the Telit Library Wizard. A product, toolchain and FW version has to be chosen. If the library is to be distributed for several configuration, it needs to be rebuilt for each configuration.

The wizard creates an AZC static lib project with a main.c in which the user can implement the static library functions. The user can rename the main source file or add/remove as many source files as he wants as long as they are in src folder.

Static library compilation produces an arhive with .azsl (AppZone Static Library) extension which basically contains the static library file (.a) and a metadata text file in order to check the library’s integrity as well as compatibility when linked against projects targeted for incompatible firmware.

 

The produced azsl can be simply dragged and dropped into the structure of a compatible (3G in our example) AppZoneC project and project developer can use the needed library functionality. When distributing the azsl file it is recommended to provide a header file with the API implemented in the library, otherwise the project code can use the extern keyword to access the functions.

In case a user imports an incompatible library to a project the SDK expects an error will be produced to inform the user that the incompatibility was spotted..