-->
Page 1 of 1

How to send a HTTP command to another wifi device

PostPosted: Fri Nov 18, 2016 1:53 pm
by blupassat
Hi,

I must to connect my nodemcu V.09 to a wifi camera and send to camera some commands like "http://192.168.X.X".

If possible anyone can help me?

I'm a newbie and it's the first project with esp8266.

Thanks a lot

Bye

Re: How to send a HTTP command to another wifi device

PostPosted: Sat Nov 19, 2016 5:01 am
by Electroguard
That's a bit like asking "How long is a piece of string?"

You call it a wifi camera, but wifi is often used for simple video streaming from cameras which cannot be connected to.
So presumably you must be talking about an IPcamera, but take a look at an IPcamera viewing software and it will cater for hundreds - if not thousands - of different makes and models of IPcamera's, all with their own specific features and protocols and quirks... so which one of those is yours???

I suspect for security and performance reasons the connection transport protocol would probably be TCP, and Esp_Basic only has UDP implemented.

So I'm afraid can already see some big potential problems in the way.

Re: How to send a HTTP command to another wifi device

PostPosted: Sat Nov 19, 2016 5:54 am
by blupassat
Hi,
thanks a lot.

The camera is an action camera and I developped an android app for it.

The action camera accepts the command like "http://192.168.xxx" for start, stop and other functions.

In my android app i used http command and the camera respond correctly.

I think that if espbasic don't use tcp protocol this operations can't work with this action camera.
I suppose that i must to look another Language for esp8266.

Thanks in advance

Bye

Re: How to send a HTTP command to another wifi device

PostPosted: Sat Nov 19, 2016 7:19 pm
by Mmiscool
If all you have to do is tug on a url using http then the wget() function will work for you.

Code: Select allWget("192.168.1.100/takepic")