You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The API for the WoIOSensor Device returns a 60% since I bought it, looking into Switchbot iOS App I says it is at 94% a value that I never saw in the API responses
Expected Behavior
Should return same vaklue as the App
Steps To Reproduce
use this code - (NSDictionary *)getDeviceStatusForDeviceID:(NSString *)deviceID error:(NSError **)error {
// Generate timestamp and nonce
long long timestamp = (long long)([[NSDate date] timeIntervalSince1970] * 1000);
NSString *nonce = [[NSUUID UUID] UUIDString];
Analysis
The API for the WoIOSensor Device returns a 60% since I bought it, looking into Switchbot iOS App I says it is at 94% a value that I never saw in the API responses
Expected Behavior
Should return same vaklue as the App
Steps To Reproduce
use this code - (NSDictionary *)getDeviceStatusForDeviceID:(NSString *)deviceID error:(NSError **)error {
// Generate timestamp and nonce
long long timestamp = (long long)([[NSDate date] timeIntervalSince1970] * 1000);
NSString *nonce = [[NSUUID UUID] UUIDString];
} to get the Status
Logs
Configuration
Any iOS or MacOSDevice
Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: