How to read a bit stream using Lua socket.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to read a bit stream using Lua socket.

Laurent FAILLIE
Hello,

I'm working on a program to control a GoPro camera over WiFi.
To get the status of the camera, I need to get 32 bits binary stream from http://10.5.5.9/camera/se

The problem here is ... BINARY because it seems socket.http try to interpret the result as a string resulting http.request() to hangs.

Do I have to simulate HTTP choreography directly at socket level or is any simplest way ?

Thanks

---
 The misspelling master is on the Web.
  _________ 100 % Dictionnary Free !
/               /(
/ Dico       / / Pleins d'autres fautes sur
/________/ /
(#######( / http://destroyedlolo.info
Quoi, des fautes d'orthographe! Pas possible ;-D.
Reply | Threaded
Open this post in threaded view
|

Re: How to read a bit stream using Lua socket.

Laurent FAILLIE
Hum, forget it : it was a bug in my own code.

Sorry ...


On Sunday, February 2, 2014 8:08 PM, Laurent FAILLIE <[hidden email]> wrote:
Hello,

I'm working on a program to control a GoPro camera over WiFi.
To get the status of the camera, I need to get 32 bits binary stream from http://10.5.5.9/camera/se

The problem here is ... BINARY because it seems socket.http try to interpret the result as a string resulting http.request() to hangs.

Do I have to simulate HTTP choreography directly at socket level or is any simplest way ?

Thanks

---
 The misspelling master is on the Web.
  _________ 100 % Dictionnary Free !
/               /(
/ Dico       / / Pleins d'autres fautes sur
/________/ /
(#######( / http://destroyedlolo.info
Quoi, des fautes d'orthographe! Pas possible ;-D.