Skip to content

Module Core

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.

Contents

Module At

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, at::send() and at::searchLine()

Module Debug

Module Delay

Module device

Module Errors

Module Global

Module Hash

Module Interruption

Module Names

Module opmode

  • OPMODE_BOOT: 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_NORMAL: 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_LOW: 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_SLEEP: 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_FATAL_ERROR: 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.

Module Puf

Module rhio-pinmap

Module Sync

Module Tempo

Module Types

Module Utils

Comments