개인 정보 보호 정책
데이터 개인 정보 보호 및 보안 계약
dependencies {implementation 'com.tencent.iot.hub:hub-device-android-core:x.x.x'implementation 'com.tencent.iot.hub:hub-device-android-service:x.x.x'}
iot_core is required.iot_service is required.dependencies {implementation project(':hub:hub-device-android:iot_core')implementation project(':hub:hub-device-android:iot_service')}
{"PRODUCT_ID": "","DEVICE_NAME": "","DEVICE_PSK": "","SUB_PRODUCT_ID": "","SUB_DEV_NAME": "","SUB_PRODUCT_KEY": "","TEST_TOPIC": "","SHADOW_TEST_TOPIC": "","PRODUCT_KEY": ""}
PRODUCT_ID, DEVICE_NAME, and DEVICE_PSK in the configuration information in app-config.json. The SDK will automatically generate a signature based on the device configuration information as a credential for connection to IoT Hub.PRODUCT_ID and DEVICE_NAME in the configuration information in app-config.json and read the content of the device certificate and private key files in either of the following two ways:AssetManager. In this case, you need to create the assets directory under the hub/hub-android-demo/src/main path of the project and place the device certificate and private key files in it.InputStream. In this case, you need to pass in the full path information of the device certificate and private key files.mDevCertName certificate name and mDevKeyName private key name in IoTMqttFragment.java.private String mDevCertName = "YOUR_DEVICE_NAME_cert.crt";private String mDevKeyName = "YOUR_DEVICE_NAME_private.key";
mMqttConnection = new TXGatewayConnection(mContext, mBrokerURL, mProductID, mDevName, mDevPSK,null,null ,mMqttLogFlag, mMqttLogCallBack, mMqttActionCallBack);mMqttConnection.connect(options, mqttRequest);
피드백