BLE mesh on nrf52


Is there any lib or sample code for nrf52 BLE mesh?


You need to tell us which exact board you’re working with. Then it’s a question of whether the underlying Arduino core has such a code or a library for it (if using Arduino).

General PlatformIO examples for nRF52 are available at platform-nordicnrf52/examples at develop · platformio/platform-nordicnrf52 · GitHub, as noted in the documentation.

An option would definitely by the Zephyr framework instead of Arduino since it has a BLE Mesh documentation and sample code for Zephyr 2.4.0, which PlatformIO currently supports in the latest nordic-nrf52 platform version. Zephyr configuration within PlatformIO is also documented.

Hi, nrf52832 or 840. I have been using zephyr’s framework already. In fact I was wondering whether Nordic BLE Mesh SDK was in anyway ported to platformio.

Not supported, as per documentation. Either Arduino or Zephyr (or mbed-os for some special boards).