API change notes
Updated at:
The pod name has been changed from "IMLChannelCore" to "IotLinkKit". This change aligns the name with the Android and Java versions.
API upgrades for iOS SDK v1.2.0
SDK name change
SDK entry class name change
The main APIs for the IMLChannelCore SDK are in "AlinkIoTExpress/LKIoTExpress.h". The API entry point for the IotLinkKit SDK is in "IotLinkKit/LinkKitEntry.h".
API mapping between the two SDKs
| API feature | Implementation in IotLinkKit | Corresponding IMLChannelCore API |
| SDK initialization and channel connection | [setup:resultBlock:] | [startConnect:connectListener:] |
| SDK deinitialization and disconnection | [destroy:] | [stopConnect:] |
| Register a channel message listener | [registerChannelListener:] | [addDownstreamListener] |
| Unregister a channel message listener | [unregisterChannelListener:] | [removeDownStreamListener:] |
| Uplink data | [publish:data:qos:resultBlock:] | [uploadData:data:qos:complete:], or [publish:params:complete:] |
| Subscribe to a topic | [subscribe:resultBlock:] | [subscribe:complete:] |
| Unsubscribe from a topic | [unsubscribe:resultBlock:] | [unsubscribe:complete:] |
New APIs for sub-device management
The header file for these APIs is "IotLinkKit/LinkkitGateway.h". For usage instructions, see the "Gateways and Sub-devices" chapter.
Is this page helpful?