tuya-sdk-tools v0.4.4
capacitor-asiainfo
capcitor plugin
Install
npm install capacitor-asiainfo
npx cap sync
API
echo(...)
registrationTuyaToken(...)
loginTuya(...)
getOrCreateHome(...)
startTuyaConfigWait(...)
stopConfig()
startSubConfigWait(...)
logoutTuya()
stopSubConfig(...)
startGwConfigWait(...)
stopGwConfig()
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>
Param | Type |
---|---|
options | { value: string; } |
Returns: Promise<{ value: string; }>
registrationTuyaToken(...)
registrationTuyaToken(options: { homeId: string; }) => Promise<{ status: boolean; token: string; msg: string; }>
Param | Type |
---|---|
options | { homeId: string; } |
Returns: Promise<{ status: boolean; token: string; msg: string; }>
loginTuya(...)
loginTuya(options: { uid: string; passwd: string; }) => Promise<{ status: boolean; msg: string; }>
Param | Type |
---|---|
options | { uid: string; passwd: string; } |
Returns: Promise<{ status: boolean; msg: string; }>
getOrCreateHome(...)
getOrCreateHome(options: { home: string; }) => Promise<{ status: boolean; homeId: string; msg: string; }>
Param | Type |
---|---|
options | { home: string; } |
Returns: Promise<{ status: boolean; homeId: string; msg: string; }>
startTuyaConfigWait(...)
startTuyaConfigWait(options: { ssid: string; password: string; type: string; token: string; homeId: string; }) => Promise<{ status: boolean; msg: string; deviceList: string; }>
Param | Type |
---|---|
options | { ssid: string; password: string; type: string; token: string; homeId: string; } |
Returns: Promise<{ status: boolean; msg: string; deviceList: string; }>
stopConfig()
stopConfig() => Promise<{ status: boolean; }>
Returns: Promise<{ status: boolean; }>
startSubConfigWait(...)
startSubConfigWait(options: { deviceId: string; homeId: string; }) => Promise<{ status: boolean; msg: string; deviceList: string; }>
Param | Type |
---|---|
options | { deviceId: string; homeId: string; } |
Returns: Promise<{ status: boolean; msg: string; deviceList: string; }>
logoutTuya()
logoutTuya() => Promise<{ status: boolean; msg: string; }>
Returns: Promise<{ status: boolean; msg: string; }>
stopSubConfig(...)
stopSubConfig(options: { deviceId: string; }) => Promise<{ status: boolean; }>
Param | Type |
---|---|
options | { deviceId: string; } |
Returns: Promise<{ status: boolean; }>
startGwConfigWait(...)
startGwConfigWait(options: { homeId: string; }) => Promise<{ status: boolean; msg: string; deviceList: string; }>
Param | Type |
---|---|
options | { homeId: string; } |
Returns: Promise<{ status: boolean; msg: string; deviceList: string; }>
stopGwConfig()
stopGwConfig() => Promise<{ status: boolean; }>
Returns: Promise<{ status: boolean; }>
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago