Skip to content

ESPRMBaseConfig

Defined in: src/types/config.ts:10

Configuration for the ESPRMBase SDK.

baseUrl: string

Defined in: src/types/config.ts:12

ESP RainMaker API base URL, e.g. https://api.rainmaker.espressif.com.


optional customStorageAdapter?: ESPRMStorageAdapterInterface

Defined in: src/types/config.ts:19

Storage used to persist session tokens. Defaults to window.localStorage; required in environments without it (Node.js, React Native, workers).


optional timeoutMs?: number

Defined in: src/types/config.ts:25

Per-request timeout in milliseconds applied to every API call. Requests exceeding it are aborted and rejected with an ESPAPIError whose errorCode is REQUEST_TIMEOUT. Defaults to 30000. Set to 0 to disable.


optional version?: string

Defined in: src/types/config.ts:14

API version path segment. Defaults to v1.