Tuya Smart Sweeper iOS SDK is based on the Tuya Smart Home iOS SDK(The following introduction is: Home SDK), which expands the interface package for accessing the related functions of the sweeper device to speed up the development process. Mainly includes the following functions:
- Streaming media (for gyro or visual sweepers) universal data channel
- Data transmission channel of laser sweeper
- Laser sweeper real-time / historical sweep record
- Sweeper universal voice download service
The laser sweeper data is divided into real-time data and historical record data. Both types of data include map data and path data, which are stored in the cloud in the form of files. Among them, the map and path of real-time data are stored in different files, and the map and path of historical data are stored in the same file. The map and path data are split and read according to the specified rules.
Tuya Smart Sweeper iOS SDK relies on the Tuya Smart Home iOS SDK, and develop on this basis。Before starting to develop with the SDK, you need to register a developer account, create a product, etc. on the Tuya Smart Development Platform, and obtain a key to activate the SDK, please refer to Tuya Smart Home iOS SDK Preparation work.
Add the following content in file
platform :ios, '9.0' target 'your_target_name' do pod 'TuyaSmartSweeperKit' end
pod update in the project's root directory to begin integration.
For the instructions of CocoaPods, please refer to: CocoaPods Guides
Add the following to the project file
Swift project add the following to the