+ /**
+ * check if firmware is actual
+ *
+ * @return array
+ */
+ public function checkFirmware () {
+ $path = 'data/checkfirmware.json';
+ $fields = array('checkfirmware' => 'true');
+ $cookie = 'challengev='.$this->challenge.'; '.$this->session;
+ $data = $this->sentRequest($path, $fields, $cookie);
+
+ if (empty($data['body'])) {
+ throw new Exception('unable to get checkfirmware data');
+ }
+
+ $json = json_decode($data['body'], true);
+
+ return $json;
+ }
+