Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
e2e
fastlane
merges/windows
resources
src
typings
.gitignore
CHANGELOG.md
Gemfile
Gemfile.lock
LICENSE.txt
README.md
angular.json
config.xml
ionic.config.json
package-lock.json
package.json
tsconfig.json
tslint.json

README.md

IoTize BLE Terminal example app

iotize-terminal is a simple demonstration App showing how to use Iotize Device API in a Cordova based app.

This sample is based on a tabs based Ionic 4 App. Ionic tutorial

Installation of this example

In order to try this example application, you need to perform these steps:

git clone https://github.com/iotize-sas/iotize-terminal.ionic.git
cd iotize-terminal.ionic
npm i -g ionic
npm i
ionic cordova run <platform>

The following sections explains some of the steps encountered during this application development

Installation of IoTize Device API

IoTize Device API and the cordova plugin, using npm and ionic CLI (or cordova one)

npm install @iotize/device-client.js --save
ionic cordova plugin add @iotize/cordova-plugin-iotize-ble // or cordova plugin add @iotize/cordova-plugin-iotize-ble on cordova only projects

IoTize Device service generation

In this example DeviceService class gives access to a global instance of IotizeDevice object enabling the communication between the app and the device through the API. Please refer to the API documentation center to learn more about the API and its usage.

Building Ionic App for ios

If you are using XCode 9+, you might get a warning saying that the swift version used is 2.x, and that XCode 9+ can't build the app. You can change this by opening the iOS platform's xcodeproj file, access build settings (within the project file) and select "Swift 3" in the Swift Language Version selector.

You can’t perform that action at this time.