Conforms to NSObject
Declared in LEService.h

Overview

Implement this protocol to be notified when a service (typically a sensor of some kind) sends an updated value.

Instance Methods

service:didUpdateInputFormatFrom:to:

Invoked when a service receives an updated LEInputFormat

- (void)service:(LEService *)service didUpdateInputFormatFrom:(LEInputFormat *)oldFormat to:(LEInputFormat *)newFormat

Parameters

service

The service that received an updated value

oldFormat

The previous input format

newFormat

The new input format

Discussion

Invoked when a service receives an updated LEInputFormat

Declared In

LEService.h

service:didUpdateValueDataFrom:to:

Invoked when a service receives an updated value. You can use of the convenience methods [LEService numberFromValueData], [LEService valueAsInteger] or [LEService valueAsFloat] to retrieve the value as a number.

- (void)service:(LEService *)service didUpdateValueDataFrom:(NSData *)oldValue to:(NSData *)newValue

Parameters

service

The service that received an updated value

oldValue

The previous value

newValue

The new value

Discussion

Invoked when a service receives an updated value. You can use of the convenience methods [LEService numberFromValueData], [LEService valueAsInteger] or [LEService valueAsFloat] to retrieve the value as a number.

Declared In

LEService.h