Class ShadowMeshModel
java.lang.Object
org.openremote.agent.protocol.bluetooth.mesh.ShadowMeshModel
- Direct Known Subclasses:
ShadowGenericOnOffModel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected final ShadowMeshElementprotected final ScheduledExecutorServicestatic final Loggerprotected final BluetoothMeshNetwork -
Constructor Summary
ConstructorsConstructorDescriptionShadowMeshModel(ScheduledExecutorService executorService, BluetoothMeshNetwork network, ShadowMeshElement element, int appKeyIndex) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSensorValueConsumer(Consumer<Object> consumer) protected abstract MeshMessagecreateGetMeshMessage(ApplicationKey applicationKey) protected abstract MeshMessagecreateSetMeshMessage(ApplicationKey applicationKey, Object value) protected voidprotected abstract intprotected abstract Stringabstract voidonMeshMessageReceived(MeshMessage meshMessage) voidremoveSensorValueConsumer(Consumer<Object> consumer) voidvoidsendSetCommand(Object value) voidsetAppKeyIndex(int appKeyIndex)
-
Field Details
-
LOG
-
element
-
meshNetwork
-
appKeyIndex
protected int appKeyIndex -
executorService
-
-
Constructor Details
-
ShadowMeshModel
public ShadowMeshModel(ScheduledExecutorService executorService, BluetoothMeshNetwork network, ShadowMeshElement element, int appKeyIndex)
-
-
Method Details
-
addSensorValueConsumer
-
removeSensorValueConsumer
-
setAppKeyIndex
public void setAppKeyIndex(int appKeyIndex) -
sendSetCommand
-
sendGetCommand
public void sendGetCommand() -
executeSensorValueConsumers
-
onMeshMessageReceived
-
createSetMeshMessage
-
createGetMeshMessage
-
getModelName
-
getModelId
protected abstract int getModelId()
-