Link Search Menu Expand Document

Device API

Libertas-OS is an operating system for IoT. Device access is an indispensable operation for IoT systems.

Asynchronous Access

Please note that device access is always asynchronous.

  • Devices may be wireless; there is latency/delays from when the control signal is sent to when the acknowledgment is received.
  • Communication may be interfered with. The framework will automatically retry transmission.
  • Because of retransmissions, duplicated copies of messages may be received; the framework shall be able to detect that.
  • Device may suddenly become faulty or irresponsive. After certain retries, a failure shall be reported to the Thing-App code.

Maintaining transaction state and error handling are key parts of the implementation. Libertas OS takes care of the complexity and abstracts the device access into a few APIs.

Device API is reactive only.


Table of contents