Statistics

The rCell API supports collecting dynamic system data through its statistics URL. This data is read-only. Every call actively collects the latest data associated with the selected stats element. For a list of pollable options, use a GET request on https://[rcell_ip]/api/stats.

Statistic Group Description
bluetooth Bluetooth statistics
dns Current DNS servers
eth Current Ethernet state
ethHistory Ethernet statistics history
ethTotal Ethernet statistics summary
gps GPS NMEA and statistics
gre GRE tunnel statistics
ipsec IPsec interface statistics
lan Local Area Network statistics
modbus Modbus statistics
ppp PPP statistics
pppHistory PPP statistics history
pppTotal PPP statistics summary
radio Statistics and information about the cellular radio
remoteManagement Remote Management (DeviceHQ) statistics
serial Serial port statistics
service Various service status
status Important system events
wlan Wi-Fi statistics
wlanHistory Wi-Fi statistics history
wlanTotal Wi-Fi statistics summary

Example

Retrieving the current DHCP setting using the method URI parameter.

GET https://192.168.2.1/api/stats/ppp

Status: HTTP/1.1 200 OK
{
    "code" : 200, 
    "result" : {
        "areaCode" : "7D0E",
        "dnsServers" : [ "222.88.33.23" ], 
        "ip" : "142.133.12.40",
        "link" : "PPP Link is up",
        "localIp" : "142.133.12.40", 
        "mtu" : "1550",
        "number" : "14831268306",
        "remoteIp" : "192.168.202.0",
        "roaming" : false,
        "rssi" : "10",
        "rx" : {
            "bytes" : "102542",
            "dropped" : "0",
            "errors" : "0",
            "frame" : "0",
            "overruns" : "0",
            "packets" : "797",
        },
        "tower" : "2802",
        "tx" : {
            "bytes" : "44841",
            "carrier" : "0",
            "collisions" : "0",
            "dropped" : "0",
            "overruns" : "0",
            "packets" : "648",
            "queueLength" : "3"
        },
        "uptime" : "104603"
        },
    "status" : "success"
}