Skip to content

Latest commit

 

History

History
54 lines (38 loc) · 1.25 KB

README.md

File metadata and controls

54 lines (38 loc) · 1.25 KB

Scaleway IoT Hub SDK for Kotlin Multiplatform

Version JVM Android iOS

This is an unofficial SDK for the Scaleway IoT Hub API.

It is written in Kotlin Multiplatform and uses the Ktor client library to interact with the API.

Supported platforms

  • JVM
  • Android
  • iOS

Setup

Dependencies are hosted on Maven Central.

Add dependency

implementation("com.playmoweb.iothub:iothub-sdk:0.1.0")

Usage

Example

import com.playmoweb.iothub.IotHubConfig
import com.playmoweb.iothub.IotHubSdk

val sdk: IotHubSdk = IotHubSdk(
    iotHubConfig = IotHubConfig(
        accessKey = "your_access_key",
        secretKey = "your_secret_key"
    ),
)

val devices = sdk.client.listDevices()

Features

Useful links