<?php

/*
 * ******************************************************************************
 * Copyright 2011-2017 DANTE Ltd. and GÉANT on behalf of the GN3, GN3+, GN4-1 
 * and GN4-2 consortia
 *
 * License: see the web/copyright.php file in the file structure
 * ******************************************************************************
 */
const SAMPLERESULT = [
    'reportOrigin' => [
        "testDeviceType" => 'Frankenprobe',
        "testDeviceVersion" => '1.0',
        "testDeviceId" => '00-11-22-33-44-55',
        "testInstanceUniqueId" => "13df2a-671bbfa5697-13245-67713af",
        "testStartTimestamp" => "2017-09-13 15:00:00",
        "testFinishedTimestamp" => "2017-09-13 15:02:19",
    ],
    'environment' => [
        "latitude" => 38.25,
        "longitude" => 21.73,
        "altitude" => -213, 45,
        "locationName" => "Subterranean University",
        "eduroamDbInstid" => '13',
        "eduroamDbLocationid" => '2',
        "testDeviceLocationDescription" => "rector's office, hidden behind the 'A Starry Night' van Gogh painting on the rear wall",
        "locationMethod" => "Differential Indoor GPS",
        "wifiSurround" => [
            "02-56-23-12-77-a2" => [
                "eduroam" => -67,
                "drillTest" => -67,
            ],
            "09-55-ae-b1-99-33" => [
                "geological_symposium" => -92
            ],
        ],
        "HS2Presence" => ["00-1B-C5-04-60"],
        "channelsInUse" => [1, 6, 11, 54],
    ],
    'connectivity' => [
        "eapAuthnResult" => ["TLS" => -1., "TTLS" => 1.086, "PEAP" => 0.997],
        "ipv4TimeToAddress" => 0.09,
        "ipv6TimeToAddress" => -1,
        "eduroamMinimalPortSetOpen" => FALSE,
        "eduroamWronglyClosedPorts" => ["TCP/443"],
        "encryptionLevel" => ["WPA2/AES"],
        "transparentWebProxy" => FALSE,
        "NAT" => TRUE,
    ],
    'performance' => [
   "downloadThroughput" => 4375.0,
   "uploadThroughput" => 3912.5,
   "ipv4LocalPing" => 4.7,
   "ipv6LocalPing" => -1.,
    ],
];
echo "<pre>";
echo json_encode(SAMPLERESULT, JSON_PRETTY_PRINT);
echo "</pre>";