Configures and manages the ESP RainMaker Neo SDK.

Holds process-wide configuration, adapters, and auth state. Call ESPRMNeoBase.configure once before using other SDK APIs. Low-level initialization helpers live in utils/baseUtils.

Constructors

Accessors

Methods

  • Configures the ESP RainMaker Neo SDK with the given options. Must be called before using any other SDK functionality.

    If the SDK is already configured, previous state is disposed first so re-configure is safe.

    Parameters

    • config: ESPRMNeoBaseConfig

      Base URL (include API Gateway stage if any), Cognito/IoT settings, and optional adapters.

    Returns void

    If the configuration is invalid or initialization fails.

  • Disposes SDK state and resets peer singletons so configure can run again. Prefer this over jest.resetModules() when tearing down in tests.

    Returns void

  • Returns a copy of the global default transport priority order.

    Returns string[]

    Shallow copy of the current transport order.

  • Whether a node config's data model was declared shadowless.

    Parameters

    • OptionaldataModel: string

      NodeConfig.data_model, may be undefined.

    Returns boolean

    true when the node has no AWS IoT shadow.

  • Declares that nodes carrying dataModel have no AWS IoT shadow, so the base SDK must not register them for MQTT. Call from a satellite SDK's init, before any node is constructed.

    Parameters

    • dataModel: string

      NodeConfig.data_model value owned by the satellite.

    Returns void

  • Sets the global default transport priority order. New nodes adopt this order at construction; existing nodes keep their current order unless updated per-node via ESPRMNeoNode.setTransportOrder.

    Parameters

    • order: string[]

      Non-empty ordered list of transport modes (built-in ESPTransportMode values or custom string keys).

    Returns void

    If the order is empty or not an array.