Yopli2k / AnvizCloudKit

Anviz device cloud PHP interface kit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Anviz device cloud PHP interface kit


Support device

C2 Pro/W1/W2/OA1000 FaceDeep3/FaceDeep5/FaceDeep3-IRT/FaceDeep5-IRT MBIO

Environmental requirements

Apache + php(php version support 5.x/7.0) Extended requirements: php_soap/php_mcrypt support rewrite

Directory File Description

  • src API framework
    • lib Library
      • AnvizCommand.php Device command function
      • Logs.php Log class
      • Montitor.php Listen service
      • Protocol.php Protocol
      • SoapDiscovery.php PHP SOAP wsdl
      • Tools.php Method packets
    • config.sample.php Configure file
    • Webserver.php Communction process
  • sample Sample
    • client Client
    • server Server
      • callback.php Callback class
      • Webserver.php Soap Server
      • .htaccess Route file
    • logs Logs directory
    • config.php Configure file
    • database.phpDB connect
    • db.sql DB file

Testing process

  1. Deploy the Apache + php environment, Install php_soap Extended, php-mcrypt Extended and rewrite support
  2. Put the directory file to site directory, input http://(Site domain name)/sample/server/webserver/wsdl.html in the browser, can be display wsdl pages means successful
  3. Open url http://(site domain name)/sample/client/index.html in brower. Register new user and record the device url, username and password
  4. Power on the device,and setup device network setting connect internet
  5. Input the 000048+OK in device main UI to active cloud development mode.
  6. Enter into network - cloud menu follow the below setup
    User Name:(User name of the 3rd step)
    Password:(Pasword of the 3rd step)
    Server IP: (http://(Site domain name)/sample/server/webserver)
    
  7. Then on the device screen will display cloud connection ok. Open url http://(site domain name)/sample/client/index.html in brower, now you can see the device in page.
  8. And enter into site root directory log folder to check the device communicaiton logs with server

About

Anviz device cloud PHP interface kit


Languages

Language:PHP 100.0%