Beispiel #1
0
 public static function GetEstCurrentData($ipaddress, $port, array $ids)
 {
     $sid = '';
     for ($i = 0; $i < count($ids); $i++) {
         $sid += $ids[$i] . ',';
     }
     $url = 'http://' . $ipaddress . ':' . $port . '/crq?req=current&type=b&n1=' . $sid . '&json=1';
     $code = \Est\Emax::RequestToUrl('GET', $url);
 }
Beispiel #2
0
 public function GetSyncDateTime()
 {
     //http://10.32.18.32:8181/services/ClientModelCommonService/ClientModelCommonContract/ReadMistimingWithDevice?{%22PageNum%22:2,%22PageSize%22:50}
     $url = $this->host . '/services/ClientModelCommonService/ClientModelCommonContract/ReadMistimingWithDevice?' . json_encode(array('PageNum' => 0, 'PageSize' => 500));
     return Emax::RequestToUrl('GET', $url, array(), $this->getHeader());
 }