0.0.1 • Published 6 years ago

node-thetav v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

node-thetav

Node.js Library for Richo Theta V

Install

npm install --save node-thetav

Require

import thetav from 'node-thetav';
const httpApi = thetav.http;
const bleApi = thetav.ble;

Usage

import thetav from 'node-thetav';
const httpApi = thetav.http;
const bleApi = thetav.ble;

(async () => {
    try {
        await httpApi.cameraSetBluetoothDevice('11111111-1111-1111-1111-111111111111');
        await bleApi.init();
        await bleApi.setAuthBluetoothDevice(
            '11111111-1111-1111-1111-111111111111'
        );
        await bleApi.setTakePicture(1);
    } catch (err) {
        console.error(err);
    }
})();