Please help, what is: SecurityMessageEncapsulation means?

Hi

i’m reading and building ZWave+ device handler, and come into:

0x98 Security
Commands to and from security-sensitive devices can be sent encrypted by wrapping them in SecurityMessageEncapsulation commands.

do you know what is that means? and from a sample code i found things like this:

// Devices that support the Security command class can send messages in an
// encrypted form; they arrive wrapped in a SecurityMessageEncapsulation
// command and must be unencapsulated
def zwaveEvent(physicalgraph.zwave.commands.securityv1.SecurityMessageEncapsulation cmd) {
        def encapsulatedCommand = cmd.encapsulatedCommand([0x98: 1, 0x20: 1])

        // can specify command class versions here like in zwave.parse
        if (encapsulatedCommand) {
                return zwaveEvent(encapsulatedCommand)
        }
}

do you know how to determine: value of: 98 = 1 and 20 = 1
from code :cmd.encapsulatedCommand([0x98: 1, 0x20: 1])

Thank you in advance!
AnD

Remember google is you friend :smile:

https://books.google.com/books?id=WkyJCQAAQBAJ&pg=SA4-PA41&lpg=SA4-PA41&dq=zwave+SecurityMessageEncapsulation&source=bl&ots=QadQYB1TbY&sig=EqWz-QNhCfjwdAc_w4_7F7__dE4&hl=en&sa=X&ved=0CFEQ6AEwCWoVChMIicDflb_0yAIVEMtjCh30cAjU#v=onepage&q=zwave%20SecurityMessageEncapsulation&f=false

https://www.google.com/#q=zwave+SecurityMessageEncapsulation

http://docs.smartthings.com/en/latest/device-type-developers-guide/z-wave-primer.html

1 Like