![]() |
Public Member Functions | |
(id) | - initWithPropertyId: |
(PropertyIdentifier) | - property |
(SetPropertyCommand *) | - buildSetRequest: |
(GetPropertyCommand *) | - buildGetRequest |
(BOOL) | - notifySynchronousGetResponse:withResponse:withHandler: |
(BOOL) | - notifySynchronousSetResponse:withResponse:withHandler: |
IDBlueProperty overrides the initFromPacket command, and sets it's property identifier from the payload of the packet passed as a parameter (property identifier is stored in the first 2 bytes of the payload).
Creates an instance of the GetPropertyCommand that (when sent to IDBLUE) is used to set the current IDBLueProperty
- (SetPropertyCommand *) buildSetRequest: | (void*) | args |
Create an IDBlueCommand that will set the current property of an IDBLUE device
args | The value of the property to be set |
- (id) initWithPropertyId: | (PropertyIdentifier) | property |
Initialize the IDBlueProeprty, setting the property identifier to the specified value.
property | The property identifier for the current IDBlueProperty |
- (BOOL) notifySynchronousGetResponse: | (IDBlueCommand*) | command | |
withResponse: | (IDBlueResponse*) | response | |
withHandler: | (id<IResponseHandler>) | handler | |
Notify the given handler of a response to a get property command
command | The request (GetPropertyCommand) that resulted in the response |
response | The response (IDBlueProperty) containing the value of the property |
handler | The handler to be notified |
- (BOOL) notifySynchronousSetResponse: | (IDBlueCommand*) | command | |
withResponse: | (IDBlueResponse*) | response | |
withHandler: | (id<IResponseHandler>) | handler | |
Notify the given handler of a response to a set property command
command | The request (SetPropertyCommand) that resulted in the response |
response | The response to the set property command |
handler | The handler to be notified |
- (PropertyIdentifier) property |
Gets the property identifier of the current IDBlueProperty