Uniot Docs
  • Introduction
  • Guides
    • Getting Started
    • Uniot Badge
    • Device Network
  • Foundations
    • Edge Logic Deployment
  • General Concepts
    • Primitives
    • Scripting
  • Platform
    • Dashboard
    • Sandbox
      • Visual Editor
        • Special
        • Logic
        • Math
        • Loops
        • Text
        • Variables
        • Functions
        • Primitives
      • Logger
      • Emulator
      • Control Panel
  • Advanced
    • Uniot Core
      • Scheduler
        • TaskScheduler
        • IExecutor
        • ISchedulerConnectionKit
        • Task
        • SchedulerTask
      • AppKit
        • AppKit
        • LispDevice
        • LispPrimitives
        • TopDevice
      • CBORWrapper
        • CBORObject
        • COSE
        • COSEMessage
        • ICOSESigner
      • Date
        • Date
        • SimpleNTP
      • EventBus
        • EventBus
        • IEventBusConnectionKit
        • DataChannels
        • EventEmitter
        • EventListener
        • EventEntity
        • CallbackEventListener
      • Hardware
        • Button
      • LispWrapper
        • DefaultPrimitives
        • LispHelper
        • PrimitiveExpeditor
        • unLisp
      • MQTTWrapper
        • CallbackMQTTDevice
        • MQTTDevice
        • MQTTKit
        • MQTTPath
      • Network
        • ConfigCaptivePortal
        • NetworkController
        • NetworkScheduler
      • Register
        • GpioRegister
        • ObjectRegister
        • ObjectRegisterRecord
        • Register
        • RegisterManager
        • RegisterManagerProxy
      • Storage
        • CBORStorage
        • CrashStorage
        • Storage
        • WifiStorage
      • Utils
        • Array
        • Bytes
        • ClearQueue
        • IterableQueue
        • LimitedQueue
        • GlobalBufferMemoryManager
        • Map
        • Singleton
        • TypeId
      • Credentials
    • Uniot Lisp
      • Language Description
      • Embedding Instructions
  • API
    • MQTT Convention
Powered by GitBook
On this page
  1. Advanced
  2. Uniot Core
  3. Register

RegisterManagerProxy

PreviousRegisterManagerNextStorage

Last updated 4 months ago

The RegisterManagerProxy class acts as an intermediary between client classes and the central , facilitating controlled and streamlined interactions with registered entities. By abstracting the direct access to the RegisterManager, it promotes decoupled and modular design, enhancing the flexibility and maintainability.

Methods:

  • RegisterManagerProxy(const String &name, RegisterManager *reg) Constructs a RegisterManagerProxy instance associated with a specific register name and a pointer to the RegisterManager.

  • bool getGpio(size_t index, uint8_t &outValue) const Retrieves the value of a GPIO pin from the associated register by index.

  • template <typename T> T *getObject(size_t index) Retrieves a registered object of a specified type from the associated register by index.

Private Members:

  • String mName Stores the name of the register associated with the proxy, ensuring targeted access.

  • RegisterManager *mpRegister Pointer to the central RegisterManager instance, facilitating interactions with the register.

RegisterManager