need a little help with my code.
I would like to send a payload to my cubecell and change the dutycycle with it.
I can see my debug print for new DutyCycle received but how can i save it to flash like setting the dutycycle with the at commands?
```
//downlink data handle function
void DownLinkDataHandle(McpsIndication_t *mcpsIndication)
{
Serial.printf("+REV DATA:%s,RXSIZE %d,PORT %d\r\n",mcpsIndication-
>RxSlot?"RXWIN2":"RXWIN1",mcpsIndication->BufferSize,mcpsIndication->Port);
Serial.print("+REV DATA:");
for(uint8_t i=0;i<mcpsIndication->BufferSize;i++) {
Serial.printf("%02X",mcpsIndication->Buffer[i]);
}
Serial.println();
for(uint8_t i=0;i<mcpsIndication->BufferSize;i++) {
if (mcpsIndication->Buffer[i] == 220) { // DC for APP_TX_DUTYCYCLE; 0D BB A0 for 900000
(15min);
04 93 E0 for 300000 (5min)
APP_TX_DUTYCYCLE = mcpsIndication->Buffer[i++]<<32|mcpsIndication->Buffer[i++]
<<16|mcpsIndication->Buffer[i++]<<8|mcpsIndication->Buffer[i++];
Serial.print(" new DutyCycle received: ");
Serial.print(APP_TX_DUTYCYCLE);
Serial.println("ms");
SaveDr();
}
}
```
}