You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Mimick the device sending image page requests instead of image block requests */
28
+
/** Mimic the device sending image page requests instead of image block requests */
29
29
usePageRequests?: boolean;
30
30
pageSize?: number;
31
-
/** Mimick the device sending non-value (0xff) as `maximumDataSize` */
31
+
/** Mimic the device sending non-value (0xff) as `maximumDataSize` */
32
32
useNonValueDataSize?: boolean;
33
-
/** Mimick the device stopping image block/page requests at specified block (i.e. stalling) */
33
+
/** Mimic the device stopping image block/page requests at specified block (i.e. stalling) */
34
34
stopAfterBlocks?: number;
35
-
/** Mimick a received default response after block 1. Will repeat last block. */
35
+
/** Mimic a received default response after block 1. Will repeat last block. */
36
36
triggerDefaultResponse?: Zcl.Status;
37
-
/** Mimick the device sending out-of-order offset for block/page request, block 2 swapped with block 3 */
37
+
/** Trigger abort after block 1. */
38
+
abort?: boolean;
39
+
/** Mimic the device sending out-of-order offset for block/page request, block 2 swapped with block 3 */
38
40
shuffleOffsets?: boolean;
39
41
/**
40
42
* TODO: implement this
41
-
* Mimick the device sending block/page request with an offset that is lower or higher than expected flow of "previous offset+data size" at block 2:
43
+
* Mimic the device sending block/page request with an offset that is lower or higher than expected flow of "previous offset+data size" at block 2:
42
44
* - normal flow would be something like: block1=[offset=0, dataSize=50], block2=[offset=50, dataSize=50], block3=[offset=100, dataSize=50]
43
45
* - with this block2 has this applied to offset: block1=[offset=0, dataSize=50], block2=[offset=(dataSize-misalignedOffset), dataSize=50], block3=[offset=(dataSize*2-misalignedOffset), dataSize=50]
44
46
*/
45
47
misalignedOffset?: number;
46
-
/** Mimick failing block 2 response (mimick device sending new image block/page request for same offset) */
47
-
failBlockResponse?: boolean;
48
-
/** Mimick the device sending or not of `upgradeEndRequest` (at end of block/page requests, or as specified by other behaviors) */
48
+
/** Mimic failing given block response (mimic device sending new image block/page request for same offset OR failure to abort) */
49
+
failBlockResponse?: number;
50
+
/** Mimic the device sending or not of `upgradeEndRequest` (at end of block/page requests, or as specified by other behaviors) */
49
51
sendUpgradeEnd?: boolean;
50
-
/** Mimick the device sending that specific status in `upgradeEndRequest` */
52
+
/** Mimic the device sending that specific status in `upgradeEndRequest` */
51
53
upgradeEndStatus?: Zcl.Status;
52
-
/** Mimick the device sending `upgradeEndRequest` after that specific block/page request */
54
+
/** Mimic the device sending `upgradeEndRequest` after that specific block/page request */
0 commit comments