test: Fix payload and model opcode packing in test-mesh
authorInga Stotland <inga.stotland@intel.com>
Thu, 14 May 2020 02:20:33 +0000 (19:20 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:49 +0000 (14:30 +0530)
commitcecde862ef9dd13e96e993d0b3909582bdbd994a
tree7f74e29e33ebe8799aaf4419509d8e53fc5a3b6b
parenta0d477370b6000064d99077774c2651c80eeb087
test: Fix payload and model opcode packing in test-mesh

Use correct packing of multi-byte values in message payload bytearray.
For example, a 2-byte opcode 0x8204 is packed as 0x82 0x04, i.e. in
natural order.

Add transaction ID parameter to "set" commands of generic On/Off
model. Server will ignore the identical commands with the same
transaction ID, source and destination during a timeout period
of 6 seconds.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
test/test-mesh