• Home
  • Resources
    • User Guides
    • Concepts Articles
    • API References
    • Client Libraries & SDKs
    • Product Updates
  • FAQs
    • General
    • IoTConnect
      • Device Rules
      • Devices
      • Settings
      • Device Commands
      • Device Templates
      • Device Firmware
      • Device Onboarding
    • Security
  • Contact Us
  • Home
  • Resources
    • User Guides
    • Concepts Articles
    • API References
    • Client Libraries & SDKs
    • Product Updates
  • FAQs
    • General
    • IoTConnect
      • Device Rules
      • Devices
      • Settings
      • Device Commands
      • Device Templates
      • Device Firmware
      • Device Onboarding
    • Security
  • Contact Us

Client Libraries & SDKs

home/Documentation/Client Libraries & SDKs
  • Device SDK Reference
    • Overview
    • Device Authentication Options
    • Data Flow
    • Public Methods
      • Device Connection
      • Send Telemetry
      • Get Attributes
      • Send acknowledgment
      • Update Twin
    • SDKs (Message version 1.0)
      • DOT NET (C#)
      • Node.js
      • Java
      • Python
      • iOS
      • Android
      • Embedded
      • C language
      • Build Your Own SDK
      • Node-RED
        • IoTConnect Node-red 1.0.9
        • IoTConnect Node-red 1.0.8
      • Node-RED Subflow
        • Single Device
        • Multiple Device
    • SDKs (Message version 2.1)
      • Python
      • DOT NET (C#)
      • C language
        • IoTConnect Generic C SDK
          • Linux Build Instructions
          • Windows Build Instructions
      • Python 1.1
    • Code Samples
      • Node.js
        • TPM 3.1
        • Standard SDK 3.0
        • Standard
        • TPM
        • Standard SDK 3.0.1
        • Standard 2.0
      • Java
        • Standard
        • Standard 2.0
        • Standard 3.0
      • Python
        • Standard 2.0
        • TPM 2.1
        • Standard 3.0.1
        • Standard
        • TPM
          • TPM 3.0.1
        • TPM 3.0
        • Standard 3.0.2
        • Standard 3.0.3
        • Standard 3.0.4
        • Python SDK
      • iOS
        • ios1.0.1
      • C Language
        • nRF9160 DK
        • STM32L4
        • ESP32
        • Standard 3.0
        • Standard 2.0
        • Standard 3.1
      • Android
        • Standard 3.0
        • Standard 2.0.6
        • Standard 2.0.0
      • DOT NET (C#)
        • Standard
        • Standard 2.0
        • Standard 3.0
    • Device Message 1.0
      • D2C (Device to Cloud)
        • IoTConnect SDK
        • Custom SDK
      • C2D (Cloud to Device)
        • IoTConnect SDK
        • Custom SDK
      • Troubleshooting & Response codes
      • Know Your Essentials
    • Device Message 2.1
    • AWS Device Message 2.1
    • SDK Deep-diving
Download PDF

ios1.0.1

Card Image

iOS SDK

Version 1.0.1

Release On 11/23

Sample Code for lettest version of SDK

# Date Name Download
1 07/11/2023 Symmetric Key Sample IOS v1.0.1 Download

How to build iOS sample code?

Prerequisite tools:

  1. Xcode: Minimum iOS 10.0 Compatible

Installation:

  1. Get the “IoTConnect.framework” and add in the framework in iOS App Project

Public Methods and Implementations

Import iOS library

#import <IoTConnect/IoTConnectSDK.h>

Objective-C 

Define SDK object

IoTConnectSDK *objectIoTSDK;

SDK Init Call

NSString *uniqueId=@"sdk001";
NSString *cpId=@"abcde1";
NSString *strEnv=@"<ENV>”; 
objectIoTSDK =[[IoTConnectSDK alloc] init: cpId : uniqueId : strEnv :^(id message) {
    /* Handle Cloud to Device message */
}];

Send sensor data call

NSArray *data=@[@{
                @"uniqueId":@"sdk001",
                @"time":@"2018-03-06T11:38:53.000Z",
                @"data":@{@"temperature":@"45",@"humidity":@"40"
        }
}];

Send Temperature and Humidity

[objIoTConnect SendData:data];

Swift 

SDK Init Call

  • Get your Environment(ENV) Details
  • Get your CPID
var uniqueId="sdk001" var cpId="abcde1"
var strEnv="<<ENV>>” 
objectIoTConnect = IoTConnectSDK(cpId, uniqueId, strEnv, { (message) in
        /* Handle Cloud to Device message */
})

Send Temperature and Humidity

objectIoTConnect.sendData(data)

Powered by Softweb – An Avnet Company.

Copyright ©2022 Avnet, Inc. All rights reserved.

Human Rights Privacy Terms of Use