File "test3.php"
Full path: /www/sigfox/test3.php
File size: 746 B
MIME-type: text/x-php
Charset: utf-8
<?php
$json_string = '{"device":"739585","time":"1558311757","station":"752D","lat":"37.0","lng":"140.0","rssi":"-135.00","snr":"13.33","data":"f605705db051090194592100","seqNumber":"109","aov":2392,"tmp":26.5,"vlt":3.3,"binaryParserEnabled":true}';
$obj = json_decode($json_string,1); //JSONのデコード(JSON⇒配列に変換)
print $obj['device'] ."<BR>";
print date("Y-m-d H:i:s",$obj['time']) ."<BR>";
print $obj['station'] ."<BR>";
print $obj['lat'] ."<BR>";
print $obj['lng'] ."<BR>";
print $obj['rssi'] ."<BR>";
print $obj['snr'] ."<BR>";
print $obj['data'] ."<BR>";
print $obj['seqNumber'] ."<BR>";
print $obj['aov'] ."<BR>";
print $obj['tmp'] ."<BR>";
print $obj['vlt'] ."<BR>";
print $obj['binaryParserEnabled'] ."<BR>";
?>