2.1 Getting Started with PIC32WM-BW1 Curiosity Board Out-of-the-Box Demo

The PIC32WM-BW1 Curiosity Board comes preloaded with demonstration software that showcasesBluetooth® LE and Wi-Fi® operation. In this demo, the board connects to a smart phone over Bluetooth LE and to a public MQTT server over Wi-Fi using TLS v1.2. The board functions as a Bluetooth LE peripheral, while the smart phone operates as the Bluetooth LE central device.

On start-up, the board advertises itself for Bluetooth LE provisioning. Using the Microchip Bluetooth Data (MBD) mobile application, the user can connect to the board and enter Wi-Fi credentials to connect to an Access Point (AP). Once connected, the board initiates an unauthenticated and encrypted connection to an open source MQTT broker (for example, HiveMQ or Eclipse Mosquitto and so on.,) using TLS v1.2 and implements MQTT Protocol 5.0 and 3.1.

Simultaneously, the board starts Bluetooth LE advertisement of Bluetooth LE sensor data, allowing users to control the on-board RGB LED and monitor temperature. Using the MBD application, users can turn the RGB LED ON/OFF, change its color via a color wheel, and view temperature data. The same status and sensor data can also be monitored over Wi-Fi by subscribing to the MQTT topic. The board updates temperature data periodically over both Bluetooth LE and Wi-Fi. The demo implements the Persistent Data Storage (PDS) system to store Wi-Fi credentials received during BLE Provisioning.

Note: For an improved user experience, including bug fixes and a reduced memory footprint, ensure to update the Out-of-the-Box demo to the latest v1.2.0 release. Latest firmware can be found at “(MPLAB Discover Path)/wireless_apps_pic32_bw1/apps/bw_combo/ble_wifi_combo_oob/hex/”.
  • To upgrade firmware through serial interface using .bin file, refer to section GPIO based DFU Mode from Related Links.
  • To upgrade firmware through MPLAB tools using .hex file, refer to the chapter Flashing hex from MPLAB X IPE and MPLAB X IDE from Related Links.

For more information on the OOB demo, go to github.com/Microchip-MPLAB-Harmony/wireless_apps_pic32_bw1.