***Use chip-tool to send commands as follows:
./chip-tool any command-by-id 0x1524FC01 0x15240000 '{"0x0":"0x00"}' 1 1
***commandFields iOS call how to fill in the parameter, tried a variety of parameters, either error HMErrorDomain Code= 6 or 22 or 148, check the iOS documentation also does not indicate how the specific parameters should be passed.
[baseDevice invokeCommandWithEndpointId:[NSNumber numberWithInt:1] clusterId:[NSNumber numberWithDouble:354745345] commandId:[NSNumber numberWithInteger:354680832] commandFields:@{} timedInvokeTimeout:[NSNumber numberWithInt:15] clientQueue:dispatch_get_main_queue() completion:^(NSArray<NSDictionary<NSString *,id> *> * _Nullable values, NSError * _Nullable error) {
}];
Topic:
App & System Services
SubTopic:
Core OS
Tags: