English
English
简体中文
Contact Us
Register
Log In
IoT App SDKSmart Life App SDKiOS PlatformDevice ControlAir Conditioning Category Control Panel

Air Conditioning Category Control Panel

Last Updated on : 2021-07-05 07:48:42download

The Air Conditioning Category Control Panel is a control panel developed by native code, which supports all kinds of air conditioning equipment.

Advantages

  • Lightweight, no React Native or other frameworks required.
  • Support all types of devices. The new products can be supported in advance, without submitting a new app version.
  • Easy for debugging in the developing stage.

    Air Conditioning Category Control Panel Air Conditioning Category Control Panel

Enable Air Conditioning Category Control Panel

TuyaSmartAirConditionerPanelKit is an application interface based on IOS 9.0 and above. If the SDK you are currently accessing is TuyaSmartHomeKit, please follow the following steps to configure and use.

  1. Add the following code to the podfile file.

    pod 'TuyaSmartAirConditionerPanelKit'
    
  2. Add the following code to the index page (device list page):

    Objective C:

    #import "DeviceListViewController.h"
    #import <TuyaSmartAirConditionerPanelKit/TuyaSmartAirConditionerPanelKit.h>
    
    @implementation DeviceListViewController.h
    
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    	[tableView deselectRowAtIndexPath:indexPath animated:YES];
    	TuyaSmartDevice *device = self.deviceList[indexPath.row];
    	
    	// ...
    	TuyaSmartAirConditionerManager *manager = [[TuyaSmartAirConditionerManager alloc] initWithDeviceId:device.deviceModel.devId];
    	[self.navigationController pushViewController:manager.viewController animated:YES];          
    }
    
    @end