The Core module is a directory that contains other submodules. These modules perform generic functions, such as controlling the internal clock, controlling opmodes, and other basic tasks.
Use the Serial module to send AT commands to a modem. With this library we control the SIM868 communication modem and any other that requires sending and receiving AT commands.
It has two main methods,
opmode.h::boot()| Configured by default as the first mode. It is in charge of initializing all the modules and set the normal opmode.
opmode.h::normal()| The boot opmode will change to normal. All work is done in this mode. Sensor data is read, messages are created and transmitted.
opmode.h::low()| It performs the same functions as the normal opmode but at longer intervals and by activating the sleep mode whenever possible. Some modules may decide to stop working when this mode is activated.
opmode.h::sleep()| The microcontroller goes into sleep mode and stops working. This is usually reached via the BATT module, when a low battery charge is reported. You can also activate this mode manually when you want to save the battery, for example during the night.
opmode.h::fatal()| An error prevents rhomb.IoT from working. Visual alarms such as LED flashes or LCD messages are activated. This can be reached when a slave module is wrongly placed or a configuration parameter is not correct.