r/arduino • u/tmrh20 • Nov 01 '26
nRF24l01, nRF52x, nRF54x Radios: Create secure, wireless, IoT mesh Networks easily
A long time ago in a galaxy far far away I created some Arduino Libraries for nRF24l01+ radios. These libs allow users to use nRF24l01 radios in place of a standard Ethernet card, giving wireless (NOT WiFi) access to their Lan or the Internet through a Linux Gateway like RPi that can run an nRF24 radio.
The libraries are called RF24Gateway and RF24Ethernet, and they work with nRF24l01, nRF52x and nRF54x radios. The problem with this is that it is inherently insecure. Data is sent as plain text, so anybody can intercept and mess with the data. At least they used to be able to...
Recently, I added support for encryption to the supporting libraries for nRF52x and nRF54x radios, since they natively support AES/CCM encryption.
Now I've created a TLS example for ESP32 devices that allows encrypted MQTT connections. The example hasn't been released yet, it is still in testing, but has been pushed to the master branch on GitHub. See RF24Ethernet
Modes of operation:
- nRF24 mode: Supports all 3 radio types, not encrypted
- AES/CCM Mode: Supports only nRF52 and nRF54 radios
- RF24 + TLS Mode: Supports a hybrid network of plain-text and encrypted comms
- TLS Mode Only: Supports nRF24 devices with TLS over MQTT
Just a heads up for the Arduino geeks out there who may benefit from the lower power and longer range of nRF24 networks compared to WiFi.




