articles:pentax_k-1_wifi
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
articles:pentax_k-1_wifi [2016/11/17 22:48] – created moritz | articles:pentax_k-1_wifi [2016/11/17 23:04] – [/v1/photos/...] moritz | ||
---|---|---|---|
Line 27: | Line 27: | ||
The app talks HTTP to the camera. First, it gets general information about the camera' | The app talks HTTP to the camera. First, it gets general information about the camera' | ||
+ | |||
+ | ==== /v1/props ==== | ||
GET /v1/props HTTP/1.1 | GET /v1/props HTTP/1.1 | ||
Line 67: | Line 69: | ||
" | " | ||
" | " | ||
- | " | + | " |
- | " | + | " |
" | " | ||
" | " | ||
Line 94: | Line 96: | ||
} | } | ||
], | ], | ||
- | " | + | " |
- | " | + | " |
" | " | ||
" | " | ||
Line 101: | Line 103: | ||
</ | </ | ||
+ | ==== /v1/changes ==== | ||
+ | GET /v1/changes HTTP/1.1 | ||
+ | This command is used to upgrade the connection to websocket. | ||
+ | |||
+ | ==== /v1/photos ==== | ||
+ | |||
+ | GET / | ||
+ | List the photos on SD1. | ||
+ | <code javascript> | ||
+ | {" | ||
+ | " | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ==== / | ||
+ | |||
+ | GET / | ||
+ | Reads a specific thumbnail image from the SD card. The camera replies with a HTTP 200 OK and sends a jpeg encoded image. | ||
+ | |||
+ | GET / | ||
+ | Reads a larger resolution image from the SD card. | ||
+ | |||
+ | GET / | ||
+ | Get meta information on an image. | ||
+ | <code javascript> | ||
+ | {" | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | </ | ||
+ | |||
+ | ==== / | ||
+ | |||
+ | GET / | ||
+ | Seems to initiate live viewing. It didn't really work in the app. | ||
+ | |||
+ | ==== / | ||
+ | |||
+ | POST / | ||
+ | Parameters are '' | ||
+ | <code javascript> | ||
+ | {" | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | </ |
articles/pentax_k-1_wifi.txt · Last modified: 2016/11/17 23:16 by moritz