Help switching bytes from buffer

Hi I am looking for help to switch the 7 bytes in this buffer out of a switch node

[
    {
        "id": "0873afcd15cbc239",
        "type": "tab",
        "label": "Flow 1",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "e90c9aecdea6a647",
        "type": "Generic BLE out",
        "z": "0873afcd15cbc239",
        "name": "",
        "genericBle": "90b79a66ada648fb",
        "x": 360,
        "y": 60,
        "wires": []
    },
    {
        "id": "ec0140bfe67e023c",
        "type": "Generic BLE in",
        "z": "0873afcd15cbc239",
        "name": "",
        "genericBle": "90b79a66ada648fb",
        "useString": false,
        "notification": true,
        "x": 360,
        "y": 220,
        "wires": [
            [
                "82c4922f8479f152",
                "e333f5fcadf14088"
            ]
        ]
    },
    {
        "id": "f19b3e82cf82b816",
        "type": "inject",
        "z": "0873afcd15cbc239",
        "name": "",
        "props": [
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "connect",
        "x": 140,
        "y": 40,
        "wires": [
            [
                "e90c9aecdea6a647"
            ]
        ]
    },
    {
        "id": "e333f5fcadf14088",
        "type": "debug",
        "z": "0873afcd15cbc239",
        "name": "debug 1",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "targetType": "full",
        "statusVal": "",
        "statusType": "auto",
        "x": 320,
        "y": 280,
        "wires": []
    },
    {
        "id": "38a49a02e9100ce9",
        "type": "inject",
        "z": "0873afcd15cbc239",
        "name": "BLE Characteristics",
        "props": [
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "00007087a20b4d4da4de7f071dbbc1d8",
        "x": 110,
        "y": 160,
        "wires": [
            [
                "ec0140bfe67e023c"
            ]
        ]
    },
    {
        "id": "afb6bcee988c12a5",
        "type": "inject",
        "z": "0873afcd15cbc239",
        "name": "",
        "props": [
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "disconnect",
        "x": 150,
        "y": 80,
        "wires": [
            [
                "e90c9aecdea6a647"
            ]
        ]
    },
    {
        "id": "16882f96ce66bccf",
        "type": "switch",
        "z": "0873afcd15cbc239",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "cont",
                "v": "0:",
                "vt": "str"
            },
            {
                "t": "cont",
                "v": "1:",
                "vt": "str"
            },
            {
                "t": "cont",
                "v": "2:",
                "vt": "str"
            },
            {
                "t": "cont",
                "v": "3:",
                "vt": "str"
            },
            {
                "t": "cont",
                "v": "4:",
                "vt": "str"
            },
            {
                "t": "cont",
                "v": "5:",
                "vt": "str"
            },
            {
                "t": "cont",
                "v": "6:",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 7,
        "x": 690,
        "y": 220,
        "wires": [
            [
                "5c07fadbfc84800f"
            ],
            [
                "c1eb121c95333350"
            ],
            [
                "8fc2ffdeda45976c"
            ],
            [
                "e980bf31ecab0704"
            ],
            [
                "a2dbc72b1be9b9fc"
            ],
            [
                "9ce176e871626192"
            ],
            [
                "f88f2a0d683337e7"
            ]
        ]
    },
    {
        "id": "82c4922f8479f152",
        "type": "split",
        "z": "0873afcd15cbc239",
        "name": "",
        "splt": "\\n",
        "spltType": "str",
        "arraySplt": 1,
        "arraySpltType": "len",
        "stream": false,
        "addname": "topic",
        "property": "payload.characteristics.index",
        "x": 550,
        "y": 220,
        "wires": [
            [
                "16882f96ce66bccf",
                "a198590761bc119a"
            ]
        ]
    },
    {
        "id": "5c07fadbfc84800f",
        "type": "debug",
        "z": "0873afcd15cbc239",
        "name": "Buffer 0:",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 860,
        "y": 100,
        "wires": []
    },
    {
        "id": "c1eb121c95333350",
        "type": "debug",
        "z": "0873afcd15cbc239",
        "name": "Buffer 1:",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 860,
        "y": 140,
        "wires": []
    },
    {
        "id": "8fc2ffdeda45976c",
        "type": "debug",
        "z": "0873afcd15cbc239",
        "name": "Buffer 2:",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 860,
        "y": 180,
        "wires": []
    },
    {
        "id": "e980bf31ecab0704",
        "type": "debug",
        "z": "0873afcd15cbc239",
        "name": "Buffer 3:",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 860,
        "y": 220,
        "wires": []
    },
    {
        "id": "a198590761bc119a",
        "type": "debug",
        "z": "0873afcd15cbc239",
        "name": "debug 2",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "targetType": "full",
        "statusVal": "",
        "statusType": "auto",
        "x": 560,
        "y": 300,
        "wires": []
    },
    {
        "id": "a2dbc72b1be9b9fc",
        "type": "debug",
        "z": "0873afcd15cbc239",
        "name": "Buffer 4:",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 860,
        "y": 260,
        "wires": []
    },
    {
        "id": "9ce176e871626192",
        "type": "debug",
        "z": "0873afcd15cbc239",
        "name": "Buffer 5:",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 860,
        "y": 300,
        "wires": []
    },
    {
        "id": "f88f2a0d683337e7",
        "type": "debug",
        "z": "0873afcd15cbc239",
        "name": "Buffer 6:",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 860,
        "y": 340,
        "wires": []
    },
    {
        "id": "90b79a66ada648fb",
        "type": "Generic BLE",
        "localName": "C2-49-5A-2E-AE-57",
        "address": "c2:49:5a:2e:ae:57",
        "uuid": "c2495a2eae57",
        "characteristics": [
            {
                "uuid": "2a05",
                "name": "Service Changed",
                "type": "org.bluetooth.characteristic.gatt.service_changed",
                "notifiable": false,
                "readable": false,
                "writable": false,
                "writeWithoutResponse": false
            },
            {
                "uuid": "0000188323b39a14a4ae71a713cb89a8",
                "name": "<Unnamed>",
                "type": "(Custom Type)",
                "notifiable": true,
                "readable": true,
                "writable": true,
                "writeWithoutResponse": false
            },
            {
                "uuid": "0000188223b39a14a4ae71a713cb89a8",
                "name": "<Unnamed>",
                "type": "(Custom Type)",
                "notifiable": true,
                "readable": true,
                "writable": true,
                "writeWithoutResponse": false
            },
            {
                "uuid": "00007087a20b4d4da4de7f071dbbc1d8",
                "name": "<Unnamed>",
                "type": "(Custom Type)",
                "notifiable": false,
                "readable": true,
                "writable": true,
                "writeWithoutResponse": false
            },
            {
                "uuid": "00007086a20b4d4da4de7f071dbbc1d8",
                "name": "<Unnamed>",
                "type": "(Custom Type)",
                "notifiable": true,
                "readable": true,
                "writable": true,
                "writeWithoutResponse": false
            },
            {
                "uuid": "00007085a20b4d4da4de7f071dbbc1d8",
                "name": "<Unnamed>",
                "type": "(Custom Type)",
                "notifiable": true,
                "readable": false,
                "writable": true,
                "writeWithoutResponse": false
            },
            {
                "uuid": "00007083a20b4d4da4de7f071dbbc1d8",
                "name": "<Unnamed>",
                "type": "(Custom Type)",
                "notifiable": false,
                "readable": true,
                "writable": true,
                "writeWithoutResponse": false
            },
            {
                "uuid": "00007082a20b4d4da4de7f071dbbc1d8",
                "name": "<Unnamed>",
                "type": "(Custom Type)",
                "notifiable": true,
                "readable": true,
                "writable": false,
                "writeWithoutResponse": false
            }
        ]
    },
    {
        "id": "53363b299ea610d4",
        "type": "global-config",
        "env": [],
        "modules": {
            "node-red-contrib-generic-ble": "4.0.3"
        }
    }
]

I'm not sure if you posted that entire flow or not.

But if you did:
A lot of people won't have those nodes. (The blue ones).

Make an example flow which emulates what the blue nodes are sending out.

Then post that code.

Hi

The blue node are bluetooth BLE nodes....I am not sure on what to replace the blue nodes with, could you point me in the right direction ??

you can use the buffer-parser nodes (install in palette manager) to easily split out and parse/format the raw bytes of a buffer.

example:

Steve you are a superstar !!!! that has worked a treat !!!! took me a while to work out how setup the buffer parser node settings but got there in the end. Thank you very much for your help

1 Like