public interface ServiceCallbackListener
Modifier and Type | Method and Description |
---|---|
void |
didUpdateInputFormat(LegoService service,
InputFormat oldFormat,
InputFormat newFormat)
Invoked when a service receives an updated
InputFormat |
void |
didUpdateValueData(LegoService service,
byte[] oldValue,
byte[] newValue)
Invoked when a service receives an updated value.
|
void didUpdateValueData(LegoService service, byte[] oldValue, byte[] newValue)
LegoService.getNumberFromValueData()
,
LegoService.getValueAsInteger()
or LegoService.getValueAsFloat()
to retrieve the value as a number.service
- The service that received an updated valueoldValue
- The previous valuenewValue
- The new valuevoid didUpdateInputFormat(LegoService service, InputFormat oldFormat, InputFormat newFormat)
InputFormat
service
- The service that received an updated valueoldFormat
- The previous input formatnewFormat
- The new input format