發表文章

目前顯示的是 3月, 2019的文章

control SJ4000 wifi through HTTP

圖片
http://sj4000programming.sourceforge.net/0.7.0/html/book.html you can communicate with the camera through HTTP service, including changing camera mode, and shooting photo...etc. Checking Camera Mode To check for current mode the camera is operating in,default is video mode, open your web browser to the following URL: http://192.168.1.254/?custom=1&cmd=3016 The camera will return HTTP 200 response, using  text/xml  content type with appropriate content length, and following XML content: <?xml version="1.0" encoding="UTF-8" ?> <Function> <Cmd>3016</Cmd> <Status> MODENUMBER </Status> </Function> Each line is terminated by a single LF (ASCII 10) character except the last line (which is not terminated). and  MODENUMBER  part will be one of these camera mode numbers: Table 7.2. List of returned camera mode numbers Camera mode number Camera mode 0 Photo shooting mode 1 Video recording mode 3 Time lapse