parse_ubnt_discovery_response: Parser for Ubiquiti Discovery Protocol responses

Description Usage Arguments Value See Also Examples

View source: R/ubnt-discovery.R

Description

Takes a raw or base64 encoded Ubiquity Discovery Protocol response and turns it into a list.

Usage

1

Arguments

a

either a raw vector with the raw response byte data or a base64 encoded version of the same

Value

an ubi_d classed list with device name, model_long and model_short model info, firmware string station esssid, device uptime (if provided), device macs (MAC addresses) and ips (IPv4 addresses) and any unprocessed fields as named raw vectors (named by their field code).

See Also

Other Ubiquity Discovery Protocol functions: ubnt_discovery_probe

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
paste0(
  c(
    "AQAAggIACiSkPH9XF8+QRUICAAokpDx+VxfAqAUBAQAGJKQ8flcXCgAEACylqg",
    "sADEFpclJvdXRlciBIUAwABkxBUC1IUA0AD1dDVGVsLVdpRmktNTcxNw4AAQMDA",
    "CJYTS5hcjcyNDAudjUuNS42LjE3NzYyLjEzMDUyOC4xNzU1EAAC5LI="
  ), collaspe = ""
) -> base64_response

parse_ubnt_discovery_response(base64_response)

## Not run: 
x <- ubnt_discovery_probe("some ip address or host name")
if (!is.null(x)) parse_ubnt_discovery_response(x)

## End(Not run)

hrbrmstr/udpprobe documentation built on May 23, 2019, 9:49 a.m.