Initialization

Before starting to use a module, it needs to be initialized. During this process, Waspmote's SPI bus has to be opened to communicate with the module, and the LoRa module's switch has to be set on.

This module does not save the configuration. So, the network settings as the mode or the channel MUST be configured every time it is switched on.

Setting on

It initializes all the global variables, opens the SPI bus and switches the LoRa module on.

When setting on, the module always has the configuration by default shown in the next table:

Also, there are other global variables initialized when this function is called, shown in the following table:

Example of use:

{
    sx1272.ON(); // Opens the SPI and switches the SX1272 module ON
}

Setting off

It closes the SPI and switches the SX1272 module off.

Example of use:

{
    sx1272.OFF(); // Closes the SPI and switches the SX1272 module off
}

Last updated