Simplified developer experience for u-blox products and services
APIs: the easy alternative to AT commands
The u-blox host library - ubxlib - provides C libraries to build embedded applications easily. It is delivered as an add-on to existing microcontroller and RTOS SDKs to facilitate integration of connectivity, security, and localization into your embedded applications. The easy-to-use APIs make best use of module features in your application and run on the most common embedded platforms and RTOSs. ubxlib provides libraries that expose C APIs with examples. It supports integration to any cloud provider (Thingstream, AWS, Azure, GCP or others) via the easy-to-use MQTT client API. This works independently of communication method, be it Wi-Fi or Cellular.
APIs and examples
The convenience of not having to study AT command manuals in-depth, and instead using high-level C-APIs saves precious development time and eliminates repetitive workloads. ubxlib offers various C APIs that are concise and uniform across multiple u-blox modules. High-level APIs handle network sockets over cellular or Wi-Fi connectivity while low-level APIs handle AT commands or the UBX protocol. The location API enables positioning with GNSS modules. The BLE API offers functions for configuration and data exchange over Bluetooth LE. With the MQTT client API a developer can connect and communicate to an MQTT broker. Corresponding ready-to-use examples demonstrate how the APIs are used together with u-blox cloud services to build solutions to many real-world problems.
Supported modules and development boards
ubxlib works with most u-blox cellular, short range, and positioning modules, and it supports u-blox CellLocate, CloudLocate, MQTT Now, and MQTT Anywhere services. To find out which u-blox modules support which APIs, check out the ubxlib GitHub page.
ubxlib can be used in various architecture senarios:
ubxlib is portable and not tied to specific RTOS or MCU platforms. ubxlib currently runs on ESP32, STM32 with FreeRTOS, and nRF5 microcontroller platforms with ZephyrOS as well as on Windows and Linux PCs. On the ESP32 platform it also supports Arduino core. All supported platforms, RTOSs, and instructions to add new ones are listed on the ubxlib GitHub page.