{
    "cases": [
        {
            "test": "Float and byte order",
            "steps": [
                {
                    "write": {
                        "channel": "A",
                        "function": 16,
                        "address": "0x0004",
                        "end_address": "0x0005",
                        "format": "float_abcd",
                        "value": "230.5"
                    }
                },
                {
                    "read": {
                        "channel": "A",
                        "function": 3,
                        "address": "0x0004",
                        "end_address": "0x0005",
                        "format": "float_abcd",
                        "compare_op": "==",
                        "expected": "230.5",
                        "store": "f"
                    }
                },
                {
                    "read": {
                        "channel": "A",
                        "function": 3,
                        "address": "0x0004",
                        "end_address": "0x0005",
                        "store": "raw",
                        "store_mode": "each"
                    }
                },
                {
                    "read": {
                        "channel": "A",
                        "function": 3,
                        "address": "0x0004",
                        "end_address": "0x0005",
                        "format": "float_cdab",
                        "store": "wrong"
                    }
                },
                {
                    "log": {
                        "message": "ABCD=${f}  raw registers=${raw_0},${raw_1}  read as CDAB=${wrong}"
                    }
                }
            ]
        }
    ],
    "channel_a": {
        "enabled": true,
        "ip": "127.0.0.1",
        "port": 502,
        "retry": 3,
        "role": "master",
        "slave_id": 1,
        "timeout_ms": 1000,
        "transport": "tcp"
    },
    "channel_b": {
        "enabled": false,
        "ip": "127.0.0.1",
        "port": 502,
        "retry": 3,
        "role": "master",
        "slave_id": 1,
        "timeout_ms": 1000,
        "transport": "tcp"
    },
    "firmware": "unknown",
    "loop": 1,
    "loop_infinite": false,
    "on_error": "skip",
    "same_line": false
}
