ESPRMBaseConfig
Defined in: src/types/config.ts:10
Configuration for the ESPRMBase SDK.
Properties
Section titled “Properties”baseUrl
Section titled “baseUrl”baseUrl:
string
Defined in: src/types/config.ts:12
ESP RainMaker API base URL, e.g. https://api.rainmaker.espressif.com.
customStorageAdapter?
Section titled “customStorageAdapter?”
optionalcustomStorageAdapter?: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).
timeoutMs?
Section titled “timeoutMs?”
optionaltimeoutMs?: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.
version?
Section titled “version?”
optionalversion?:string
Defined in: src/types/config.ts:14
API version path segment. Defaults to v1.