You can connect the NB-IoT devices of China Mobile and China Unicom to IoT Platform over Message Queuing Telemetry Transport (MQTT) or Constrained Application Protocol (CoAP). If you want to use the NB-IoT devices of China Telecom, you must directly connect the devices to the AEP platform of China Telecom. If you want to connect the NB-IoT devices of China Telecom to IoT Platform, you must configure a gateway and then connect the devices from the AEP platform to IoT Platform by using the gateway.
For more information about how to connect the NB-IoT devices of China Mobile and China Unicom to IoT Platform over MQTT or CoAP, see Establish MQTT connections over TCP and Connect devices to IoT Platform over CoAP.
This topic describes how to connect an NB-IoT of China Telecom to IoT Platform by using a gateway. In this example, a smart water meter product is used.
Process
Create a product, device, and app on the AEP platform of China Telecom. Then, configure a gateway in the IoT Platform and connect the device from the AEP platform to IoT Platform by using the gateway.
The following table describes the parameters of the product on the AEP platform. When you create a product and define a Thing Specification Language (TSL) model in the IoT Platform console, the name of the product and the identifier of TSL model must be the same as the name of the product and the identifier of TSL model on the AEP platform. You can configure other parameters based on your business requirements.
Parameter | Description |
Product Name | NBProduct1. You can specify a custom value. |
Category | Smart City/Energy Management/Smart Water Meter. You can specify a custom value. |
Node Type | Device. Note If you use an NB-IoT device, set the Node Type, Connection Method, Network Type, and Protocol parameters to the values provided in this example. |
Connection Method | Direct Device Connection. |
Network Type | NB-IoT. |
Protocol | LWM2M. |
Data Encryption Method | Plaintext. You can specify a custom value. If you use this encryption method, you can perform online debugging on a device that is connected over Lightweight M2M (LWM2M). In this example, the device online debugging feature is used on the AEP platform. This way, you can create a gateway device and simulate a scenario in which the device connects and submits data to the AEP platform in an efficient manner. |
Verification Mode | IMEI Verification. You can specify a custom value. |
Endpoint Format | imei. You can specify a custom value. |
Use Profile Verified by China Telecom | No. You can specify a custom value. |
Enable Passthrough | No. You can specify a custom value. |
The smart water meter product named NBProduct includes a TSL property whose identifier is water_consumption. The property specifies water usage.
Parameter | Description |
Device | nbdevice. You can specify a custom value. |
IMEI | 321456123456098. You can specify a custom value. |