Client Mode Explanation
In client mode, your THETA connects to a Wi-Fi router. Your mobile phone or laptop connects to the same router. This allows you to access both the Internet and the THETA at the same time.
Client Mode Digest Authentication
Unlike AP mode (blue Wi-Fi LED), camera requires a username and password with every API call. The username is the serial number of the THETA. The default password is the numerical portion of the serial number.
The authentication protocol is digest authentication.
Basic POST request for camera state
$ node digest.js
Take Picture using node and express
Set up at top of code:
const digestRequest = require('request-digest')('THETAYL00105377', '00105377'); const clientModeURL = "http://192.168.2.101";
HTML Form with button using bootstrap
<form action="/clientTakePicture" method="POST" class="pt-3"> <button class="btn btn-primary" type="submit" name="state">Take Picture - Client Mode</button> </form>