Sure but the problem is the only way to set the keys on the RM186 seems to be via interactive mode, ie:
at+cfgex 1000 "Your App EUI"
at+cfgex 1002 "Your App Key"
So how can you read the register from the external mem via I2C - which needs to be done inside smartBASIC - and then change to interactive mode to set the keys - but still be under the control of your script?
Unless of course you hook up an external micro and issue those commands via the UART, but that kind of defeats the purpose of the RM186..
That said I hope I'm completely in the wrong here and there is way