Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed X_NUCLEO_IKS01A2 NetworkSocketAPI MQTT
You are viewing an older revision! See the latest version
Homepage
Getting started mbed NbIot with BG96 module¶
NbIot BG96 board Main features:
- LTE/EDGE modem for IOT connection
- 4A type Pmod interface (expanded uart) except for signals on pin 1 (MODEM RING) and pin 4 (MODEM POWER KEY)
here below schematics of pmod connector
- USB - AT command line interface using PC terminal application (USB driver can be found at http://www.quectel.com/support/downloads/USBDrivers.htm)
- Arduino shield to use for embedded application

Using USB - AT command port and RealTerm for AT command line¶
- Connect the BG96 board to the PC using USB port
- Open RealTerm and configure as follow:
- try to send "AT" command and see the "OK" answer from BG96
- try any other command from BG96 AT user's guide
NbIot BG96 MQTT Client example¶
for mbed OS online Compiler or user's IDE toolchain
It demonstrates how register and send data of some sensor to IBM BlueMix MQTT Quickstart server. It also can connect with MyBlueMix Avnet server (to make this user must have credential to log into Avnet server)
Please note that this example was derived from original IDW01M1_Cloud_IBM for WiFi connections. The WIFI original project can be found here
The application, by default:
- Connects to LTE network via BG96
- opens a UDP socket to Google DNS to obtain ip address of Quickstart server
- opens a TCP socket to Quickstart server to register and send data
- Send, every 30 seconds, local sensors data (temperature, humidity, pressure)
Hardware requirement
- X_NUCLEO_L476RG mcu board
- X_NUCLEO_IKS01A2 sensors expansion board
- AVNET RSR1157 NbIOT BG96 expansion board

BG96 Mqtt client example User's Guide here