You might like this @carlrowan
I am running a blank sketch on two RAK2270 Sticker Tracker Development boards with the RakClip and RakDap1 and using LoRa P2P.
The command AT+PRECV=65533
allows both send and receive. So students can use the boards as kind of a text messaging platform.
With a blank sketch AT commands still work so I am just setting:
AT+NWM=0
AT+P2P=?
AT+PFREQ=915000000
AT+PRECV=65533
AT+PSEND=616241422031327A
Which sends abAB 12z
and you can receive any sent message from other boards. All the other settings for Receiving messages are much more constraining.
Codes for P2P AT+PRECV received data: try 0= only send, 30000=receive for 30 s, 65533 can receive and send, 65534=wait for one receive then can send, 65535 = only receive");
Note: If a setting has been set you must use AT+PRECV=0
before you can change the setting to AT+PRECV=65533