SDK Public API (What Your Firmware Calls)
Based on the actual /IOTCONNECT™ SDK implementation, here is the complete public API surface your firmware interacts with:
Initialization and Connection:
| Method |
Purpose |
Init(cpId, uniqueId, environment, platform, options, callback, settingCallback) |
Initialize SDK with device credentials and platform identity |
Connect(successCallback, failedCallback, connectionStatusCallback) |
Establish connection to /IOTCONNECT™ cloud (handles Discovery + Auth + MQTT) |
Disconnect() |
Gracefully close cloud connection |
Dispose() |
Clean up all SDK resources |
Telemetry (Device → Cloud):
| Method |
Purpose |
SendData(json) |
Publish telemetry data to /IOTCONNECT™ cloud |
SendImage(path) |
Upload image file to cloud storage |
UploadImage(filePath) |
Upload image with automatic handling |
UploadImageWithClassification(filePath, classification) |
Upload image with AI classification metadata |
Device Identity Messages:
| Method |
Purpose |
GetHelloMessage(callback) |
Get device metadata, protocol info, and capability flags (mt: 200) |
GetAttributes(callback) |
Fetch template attribute definitions (mt: 201) |
GetSettings(callback) |
Fetch device twin/shadow desired properties (mt: 202) |
GetRules(callback) |
Fetch edge rules for local processing (mt: 203) |
GetChildDevices(callback) |
Get registered child devices list (mt: 204) |
GetPendingOTAUpdates(callback) |
Check for pending firmware updates (mt: 205) |
GetPendingCommands(callback) |
Check for pending commands (mt: 206) |
Commands (Cloud → Device Callbacks):
| Method |
Purpose |
OnDeviceCommand(callback) |
Register handler for device commands from cloud |
OnOTACommand(callback) |
Register handler for OTA firmware update commands |
OnModuleCommand(callback) |
Register handler for module push commands |
OnSettingChangeCommand(callback) |
Register handler for twin/shadow setting changes |
OnAttrChangeCommand(callback) |
Register handler for attribute definition changes |
OnDeviceChangeCommand(callback) |
Register handler for child device changes |
Acknowledgements:
| Method |
Purpose |
SendAckCmd(ackGuid, status, msg) |
Acknowledge command execution (success/failed) |
SendOTAAckCmd(ackGuid, status, msg) |
Acknowledge OTA update status |
SendAckModule(ackGuid, status, msg) |
Acknowledge module command execution |
UpdateSetting(property, value, version, callback) |
Report setting/twin property back to cloud |
Certificate Management:
| Method |
Purpose |
OnCertificateReceived(callback) |
Handle certificate renewal from cloud |
OnCertSignedRequest(callback) |
Handle CSR-based certificate rotation |
SubmitCSR(csr, signature) |
Submit Certificate Signing Request for rotation |