theta-ble-client-react-native
Version:
This library provides a way to control RICOH THETA using
58 lines • 1.64 kB
TypeScript
import type { CameraPowerEnum, ChargingStateEnum, CommandErrorDescriptionEnum, ConnectedWifiInfo, NetworkTypeEnum, PeripheralDevice, PluginControl, ThetaState } from '../service';
export interface BaseNotify {
deviceId: number;
characteristic: string;
error?: NotifyError;
params?: any;
}
export interface NotifyError {
message: string;
params?: string;
}
export interface BatteryLevelNotify extends BaseNotify {
params?: {
batteryLevel: number;
};
}
export interface BatteryStatusNotify extends BaseNotify {
params?: {
batteryState: ChargingStateEnum;
};
}
export interface CameraPowerNotify extends BaseNotify {
params?: {
cameraPower: CameraPowerEnum;
};
}
export interface CommandErrorDescriptionNotify extends BaseNotify {
params?: {
commandErrorDescription: CommandErrorDescriptionEnum;
};
}
export interface PluginControlNotify extends BaseNotify {
params?: PluginControl;
}
export interface ThetaStateNotify extends BaseNotify {
params?: ThetaState;
}
export interface ScanPeripheralDeviceNotify extends BaseNotify {
params?: PeripheralDevice;
}
export interface ScanPeripheralDeviceCompletedNotify extends BaseNotify {
params?: PeripheralDevice[];
}
export interface NetworkTypeNotify extends BaseNotify {
params?: {
networkType: NetworkTypeEnum;
};
}
export interface ConnectedWifiInfoNotify extends BaseNotify {
params?: ConnectedWifiInfo;
}
export interface ScanSsidNotify extends BaseNotify {
params?: {
ssid?: string;
ssidList?: string[];
};
}
//# sourceMappingURL=notify.d.ts.map