Skip to content

saveeye/SDK-Example

Repository files navigation

SaveEye SDK Example App

This example app demonstrates how to use the SaveEye SDK to interact with SaveEye devices. The app includes examples of provisioning devices, connecting to WiFi, retrieving device information, and subscribing to real-time data.

SDK

An overview of the SDK can be found here: SaveEyeSDK

Prerequisites

Before running the example app, ensure you have the following installed:

  • Node.js (>= 14.x)
  • Yarn package manager
  • React Native CLI
  • Xcode (for iOS development)
  • Android Studio (for Android development)

Setup

  1. Clone the repository:
git clone https://github.com/your-repo/saveeye-sdk-example.git
cd saveeye-sdk-example
  1. Install dependencies:
yarn install
  1. Add your GoogleService-Info.plist file to the appropriate directory for iOS and google-services.json for Android.

  2. Add your SDK key in a new file called Secrets.tsx:

// filepath: /src/Secrets.tsx
export const AppSdkKey = 'YOUR_SDK_KEY_HERE';

Running the App

iOS

  1. Install CocoaPods dependencies:
cd ios
pod install
cd ..
  1. Run the app:
yarn ios

Android

  1. Run the app:
yarn android

The example app includes the following features:

  • Initialize
  • Provisioning a Device
  • Connecting to WiFi
  • Retrieving Device Information
  • Subscribing to Real-Time Data
  • Unsubscribing from Real-Time Data
  • Setting Device Alias
  • Setting Local MQTT Settings
  • Setting Device Alarm Thresholds

Support

For support or questions, please contact thj@saveeye.com.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published