public SerialMessage getValueMessage ( ) { logger . debug ( "Creating new message for application command BASIC_GET for node {}" , this . getNode ( ) . getNodeId ( ) ) ; SerialMessage result = new SerialMessage ( this . getNode ( ) . getNodeId ( ) , SerialMessageClass . SendData , SerialMessageType . Request , SerialMessageClass . ApplicationCommandHandler , SerialMessagePriority . Get ) ; byte [ ] newPayload = { ( byte ) this . getNode ( ) . getNodeId ( ) , 2 , ( byte ) getCommandClass ( ) . getKey ( ) , ( byte ) BASIC_GET } ; result . setMessagePayload ( newPayload ) ; return result ; }
Gets a SerialMessage with the BASIC GET command