This website is available for multi language.

logicAnalyzer

Monitor io logic level changes by sampling io.

request: init

path type conditions description
logic_analyzer.io[] pinSetting
  • required
 
logic_analyzer.interval number
  • required
  • 0 < value
 
logic_analyzer.duration integer
  • required
  • 0 < value
 
logic_analyzer.trigger.value boolean
  • required
start value 
logic_analyzer.trigger.samples integer
  • required
  • 0 ≤ value
how that values consists 

With below sample code, you will receive only data which start with 'false, false, false' 3bit.

// Json Example
[
    {
        "logic_analyzer": {
            "io": [ 0],
            "interval": 500,
            "duration": 500,
            "trigger": {
                "value": false,
                "samples": 3
            }
        }
    }
]

request: deinit

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

response: data

path type conditions description
logic_analyzer.data bitArray
  • required
 
//Response Example
[
    {
        "logic_analyzer": {
            "data": [0, 1, 1, 0, 0, 1, 1, 0]
        }
    }
]

type defines

bitArray

type conditions examples description
array
  • items
    • 0 ≤ value ≤ 1
  • [0, 1, 1, 0, 0, 1, 1, 0]
  • [0, 0, 1, 0, 0, 0, 0, 0]
Binary data array represented in 0 1. 

pinSetting

type conditions examples description
integer
  • 0 ≤ value ≤ 40
  • 0
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6