Set the weather city name
Function table: setWeatherCity
Parameter description:
Field name | Field type | Field description |
---|---|---|
cityName | String | City name Function table getSupportV3LongCityName supports 74-byte city names after enablingIf the function table is not enabled, the default size is 16 bytes |
Example
Swift
Cmds.setWeatherCityName().send { rs in
if case .success(let obj) = rs {
// Success
// obj is IDOCmdSetResponseModel
}else {
// Failure
}
}
Kotlin
Cmds.setWeatherCityName().send {
if (it.error.code == 0) {
// Success
// it.res is IDOCmdSetResponseModel
}else
{
// Failure
}
}