

Hardware API let you control devices through obniz Cloud by using API.

- Websocket - Bi-directional communication.
- REST API - API to device one direction

API is common json formats. All things obniz device can do can be controlled from obniz Hardware API from IO on/off to UART/SPI/BLE. Especially Websocket API let you control hardware from HTML bi-directionally.

## SDK

We provide SDKs

- [obniz.js](/reference/common/)  
    SDK for JavaScript using Websocket API. Works on Browser/Node.js.  
    Github: [https://github.com/obniz/obniz](https://github.com/obniz/obniz)
- [obniz.py](https://github.com/obniz/obniz-python-sdk)  
    SDK for Python using Websocket API.
- [obniz-node-red](https://github.com/9wick/node-red-contrib-obniz)  
    Node-RED experimental SDK.

## JSON Format

See all commands.

[Websocket API Reference](/reference/websocket/ws/)
