Code Monkey home page Code Monkey logo

onvif-gsoap-by-example's Introduction

ONVIF / GSOAP by example

In this example, I demonstrate how to retrieve a snapshot URI from an ONVIF complaint IP camera and download it locally. You can view the complete blog post associated with this project on my website.

The code is well commented and should be easy to read.

Prerequisites

You will need curl to build the app.

Usage

Clone the example code from github:

git clone https://github.com/Sufi-Al-Hussaini/onvif-gsoap-by-example

Now, all you have to do is:

cd onvif-by-example
make

Run the program:

./ipconvif -cIp '<camera-ip>' -cUsr '<camera-username>' -cPwd '<camera-password>'

Credits

The base code for this project was adapted from the gsoap-onvif github repo originally written by tonyhu.

onvif-gsoap-by-example's People

Contributors

hu55a1n1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

onvif-gsoap-by-example's Issues

website link not available

Hello,
I tried to check your website for tutorials and it is not available. I want to implement an visual studio project on my windows 64 pc to get onvif camera device information and possible to control it. Probably you can help me with some useful link?! I am totally new with this gsoap and onvif.

Compile issues with OpenSSL version

While running make I'm getting the following error.

stdsoap2.cpp: In function ‘int tcp_connect(soap*, const char*, const char*, int)’:
stdsoap2.cpp:4406:52: error: ‘M_ASN1_STRING_data’ was not declared in this scope
             { if (!soap_tag_cmp(host, (const char*)M_ASN1_STRING_data(name)))
                                                    ^~~~~~~~~~~~~~~~~~
stdsoap2.cpp:4406:52: note: suggested alternative: ‘ASN1_STRING_data’
             { if (!soap_tag_cmp(host, (const char*)M_ASN1_STRING_data(name)))
                                                    ^~~~~~~~~~~~~~~~~~
                                                    ASN1_STRING_data
Makefile:22: recipe for target 'stdsoap2.o' failed
make: *** [stdsoap2.o] Error 1

I've read at here that it is something related to OpeSSL and gSOAP. If you've encountered the same issue, would you mind shedding light on this? I'm using an Ubuntu machine for building the project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.