BLE HCI

ble.hci

request: init

path type conditions description
ble.hci.initialize boolean
  • required
 
// Json Example
[
    {
        "ble": {
            "hci": {
                "initialize": true
            }
        }
    }
]

request: deinit

path type conditions description
ble.hci null
  • required
 
// Json Example
[
    {
        "ble": {
            "hci": null
        }
    }
]

request: write

path type conditions description
ble.hci.write dataArray
  • required
 
// Json Example
[
    {
        "ble": {
            "hci": {
                "write": [16, 34, 242]
            }
        }
    }
]

request: advertisement_filter

path type conditions description
ble.hci.advertisement_filter[].range.index integer
  • required
  • 0 ≤ value ≤ 255
 
ble.hci.advertisement_filter[].range.length integer
  • required
  • 0 ≤ value ≤ 255
 
ble.hci.advertisement_filter[].value dataArray    
// Json Example
[
    {
        "ble": {
            "hci": {
                "advertisement_filter": [
                    {
                        "range": {
                            "index": 127,
                            "length": 127
                        },
                        "value": [16, 34, 242]
                    }
                ]
            }
        }
    }
]

response: read

path type conditions description
ble.hci.read.data dataArray
  • required
HCI data 
//Response Example
[
    {
        "ble": {
            "hci": {
                "read": {
                    "data": [16, 34, 242]
                }
            }
        }
    }
]

type defines

dataArray

type conditions examples description
array
  • items
    • 0 ≤ value ≤ 255
  • [16, 34, 242]
  • [100, 255, 21, 0, 21]
Binary data array.