Hello @carlrowan,
Using AT commands to get P2P parameters came back as all set as expected, but still no +EVT:RXP2P:
Setup code below:
void setup() {
//OSCCAL = 242;
api.system.sleep.all(3000);
get_flash();
setIO();
udrv_wdt_init(6000);
ct1 = 0;
ct2 = 0;
cbuff1 = 0;
cbuff2 = 0;
relayTimer1 = 0;
payTimer = 0;
freeTimer = 0;
digitalWrite(PWRRly, LOW);
digitalWrite(PayRly, LOW);
Serial.begin(115200);
api.system.atMode.add((char *)"encKey",(char *)"Set Enckey",(char *)"encKey", encKey_handler);
delay(100);
startTime = millis();
Serial.println("P2P Start v1.1.1");
//uint16_t sf = 10, bw = 0, cr = 0, preamble = 8, txPower = 22;
result1 = api.lorawan.nwm.set(0) ;
result1 = api.lorawan.pfreq.set(myFreq); //920000123
result1 = api.lorawan.psf.set(sf);
result1 = api.lorawan.pbw.set(bw);
result1 = api.lorawan.pcr.set(0);
result1 = api.lorawan.ppl.set(8);
result1 = api.lorawan.ptp.set(22);
result1 = api.lorawan.encry.set(1);
api.lorawan.registerPRecvCallback(recv_cb);
result1 = api.lorawan.precv(65534);
}//setup