AT_Command.h functions description

Hi,

in LoRa examples a functions from AT_Command.h are used.
Unfortunately header file doesn’t explain what declared functions actually do.

Is there any document saying what all the functions really do underneath so I could understand how and when to use them? What resources do they use and what data is stored/retrieved and where?

Thanks!

hi,

please refer this Documentation

Hi,

I was rather explicitly referring to the functions:

void enableAt(void);
void getDevParam(void);
void printDevParam(void);
void saveNetInfo(uint8_t *joinpayload, uint16_t size);
void saveUpCnt(void);
void saveDownCnt(void);
void getNetInfo(void);
void saveDr(void);
bool checkNetInfo(void);
void netInfoDisable(void);
extern bool checkUserAt(char * cmd, char * content);

which are declared in the file I was mentioning in the topic.
The question was about any documentation related to those typed in above.

The documentation provided above is available on CubeCell support pages but it describes something different I was asking for.

hi,

We are sorry that the definitions of these functions are temporarily sealed (.o files).

The functions of these functions are enable AT-command, get device param, print these device param.


@jasonXu thanks for your reply.

Nevertheless I still don’t understand what is the purpose and why/how to use functions like:

bool checkNetInfo(void);
void getNetInfo(void);
void netInfoDisable(void);
void saveNetInfo(uint8_t *joinpayload, uint16_t size);

Are those needed to save/recall any LoRaWAN configuration in/from EEPROM or is it used for some printouts only?

Some of mentioned functions are used in LoRaWAN.ifskipjoin() function in LoRa examples.

Any help from Heltec regarding code provided?
Anyone figured what above functions are used for and what if I use them wrongly/do not use them at all?

hi,

These functions mainly serve the functions shown in the picture.

If you choose “ON” mode, you need to check the options shown in the figure on the server interface.

Hi,

does it mean:

  • checkNetInfo() verify if there is some LoRaWAN configuration stored in EEPROM?
  • getNetInfo() load configuration and apply it to the LoRaWAN stack?
  • netInfoDisable() erase any EEPROM stored configuration so checkNetInfo() will return with false?
  • saveNetInfo() save network configutarion? If so what is the format?

Additional to above questions is this one:

  • could I resign from usage of above functions and configure everything from the code each time during booting?

Thanks for answers to all questions.