日本熟妇hd丰满老熟妇,中文字幕一区二区三区在线不卡 ,亚洲成片在线观看,免费女同在线一区二区

設(shè)備標(biāo)簽

支持設(shè)備端上報標(biāo)簽到云端,以及刪除設(shè)備標(biāo)簽。

上報標(biāo)簽

說明

設(shè)備標(biāo)簽相關(guān)接口參見IDeviceLabel。

//標(biāo)簽是key,value的形式,可以替換attrKey和attrValue
RequestModel<List<Map<String, String>>> requestModel = new RequestModel<List<Map<String, String>>>();
requestModel.id = "123";
requestModel.method = "thing.deviceinfo.update";
requestModel.version = "1.0";
List<Map<String, String>> paramsList = new ArrayList<Map<String, String>>();
Map<String, String> listItemMap = new HashMap<String, String>();
listItemMap.put("attrKey", "Temperature");
listItemMap.put("attrValue", "56.8");
paramsList.add(listItemMap);
requestModel.params = paramsList;
LinkKit.getInstance().getDeviceLabel().labelUpdate(requestModel, new IConnectSendListener() {
    @Override
    public void onResponse(ARequest aRequest, AResponse aResponse) {
        Log.d(TAG, "onResponse() called with: aRequest = [" + aRequest + "], aResponse = [" + (aResponse == null ? "" : aResponse.data) + "]");
    }
    @Override
    public void onFailure(ARequest aRequest, AError aError) {
        Log.d(TAG, "onFailure() called with: aRequest = [" + aRequest + "], aError = [" + getError(aError) + "]");
    }
});
        

刪除標(biāo)簽

//標(biāo)簽是key,value的形式,可以替換attrKey和attrValue
RequestModel<List<Map<String, String>>> requestModel = new RequestModel<List<Map<String, String>>>();
requestModel.id = "123";
requestModel.method = "thing.deviceinfo.delete";
requestModel.version = "1.0";
List<Map<String, String>> paramsList = new ArrayList<Map<String, String>>();
Map<String, String> listItemMap = new HashMap<String, String>();
listItemMap.put("attrKey", "Temperature");
paramsList.add(listItemMap);
requestModel.params = paramsList;
LinkKit.getInstance().getDeviceLabel().labelDelete(requestModel, new IConnectSendListener() {
    @Override
    public void onResponse(ARequest aRequest, AResponse aResponse) {
        ALog.d(TAG, "onResponse() called with: aRequest = [" + aRequest + "], aResponse = [" + (aResponse == null ? "" : aResponse.data) + "]");
    }
    @Override
    public void onFailure(ARequest aRequest, AError aError) {
        ALog.d(TAG, "onFailure() called with: aRequest = [" + aRequest + "], aError = [" + getError(aError) + "]");
    }
});