
Anviz device cloud PHP interface kit
Support device
C2 Pro/W1/W2/OA1000FaceDeep3/FaceDeep5/FaceDeep3-IRT/FaceDeep5-IRT/FacePass 7 ProMBIO
Environmental requirements
Apache + php(php version support 5.x/7.0) Extended requirements:
php_soap/php_mcryptsupportrewrite
Directory File Description
srcAPI frameworklibLibraryAnvizCommand.phpDevice command functionLogs.phpLog classMontitor.phpListen serviceProtocol.phpProtocolSoapDiscovery.phpPHP SOAP wsdlTools.phpMethod packets
config.sample.phpConfigure fileWebserver.phpCommunction process
sampleSampleclientClientserverServercallback.phpCallback classWebserver.phpSoap Server.htaccessRoute file
logsLogs directoryconfig.phpConfigure filedatabase.phpDB connectdb.sqlDB file
Testing process
- Deploy the Apache + php environment, Install
php_soapExtended,php-mcryptExtended andrewritesupport - Put the directory file to site directory, input
http://(Site domain name)/sample/server/webserver/wsdl.htmlin the browser, can be display wsdl pages means successful - Open url
http://(site domain name)/sample/client/index.htmlin brower. Register new user and record the device url, username and password - Power on the device,and setup device network setting connect internet
- Input the
000048+OKin device main UI to active cloud development mode. - Enter into
network-cloudmenu follow the below setupUser Name:(User name of the 3rd step) Password:(Pasword of the 3rd step) Server IP: ((Site domain name)/sample/server/webserver) - Then on the device screen will display cloud connection ok. Open url
http://(site domain name)/sample/client/index.htmlin brower, now you can see the device in page. - And enter into site root directory log folder to check the device communicaiton logs with server