Device Api Installation¶
Typescript¶
Install (with npm)¶
npm install @iotize/device-client.js
Usage¶
// Import all import * as IoTize from '@iotize/device-client.js' // ... or import specific files import { IoTizeDevice } from '@iotize/device-client.js/device'
Node.js¶
Install (with npm)¶
npm install @iotize/device-client.js
Usage¶
require("@iotize/device-client.js"); require("@iotize/device-com-ble.node"); // Node usage coming soon let device = IoTizeDevice.create(); // ...
Extensions¶
- @iotize/device-client.js for BLE on nodejs environment
- @iotize/device-com-ble.node for BLE on nodejs environment
- @iotize/device-com-socket.node for socket communication with node.js
Browser¶
Install¶
The library is NOT directly available yet.
Coming soon.
Extensions¶
- @iotize/device-com-websocket.js for WebSocket communication protocol with IoTize Device
Angular (>= 2)¶
There are no specific Angular wrappers available yet.
Install (with npm)¶
npm install @iotize/device-client.js // If your are using angular >= 6 add rxjs-compat dependencies npm install @iotize/rxjs-compat.js
Usage¶
// Import all import * as IoTize from '@iotize/device-client.js' // ... or import specific files import { IoTizeDevice } from '@iotize/device-client.js/device'
Your are now ready to follow the quickstart here.
Android¶
Only Android/Java is supported currently.
Requires at minimum Android 4.1.
IoTize Maven repository can be found at http://repo.iotize.com/artifactory/gradle-release
Download the latest JAR or grab via Maven:
With Maven¶
<dependency> <groupId>com.iotize.android</groupId> <artifactId>iotize-device</artifactId> <version>1.0.0-alpha.4</version> </dependency> <dependency> <groupId>com.iotize.android</groupId> <artifactId>iotize-client</artifactId> <version>1.0.0-alpha.4</version> </dependency>
With gradle file¶
repositories { // ... maven { // Add iotize repository url url "http://repo.iotize.com/artifactory/gradle-release" } } // ... dependencies { // ... // Add iotize libraries implementation 'com.iotize.android:iotize-client:1.0.0-alpha.4' implementation 'com.iotize.android:iotize-device:1.0.0-alpha.4' }
Your are now ready to follow the quickstart here.