Chengdu Ebyte Electronic Technology Co., Ltd.
E103-W03 _User Manual _EN_V1.1
Copyright ©2012–2022, Chengdu Ebyte Electronic Technology Co., Ltd
.
28
6.2 Network communication
Network communication is based on the role of STA to communicate with various cloud platforms, including
MQTT-based Alibaba Cloud, Baidu Cloud, OneNet; HTTP servery and WebSocket.
6.2.1 MQTT
Under MQTT, three kinds of transmission are supported, Alibaba Cloud, Baidu Cloud, and OneNet.
The configuration process is as follows. According to the platform you use, register to obtain relevant parameters, and
finally add it to the web page window. You can also use AT commands to configure.
Special note: For users of self-built mqtt servers, use this module to access, you can choose Baidu cloud or onenet, and
fill in the corresponding parameters.
When the self-built mqtt server uses Baidu Cloud, the device name is the Client ID, and the user name and password
correspond. When using onenet, the device ID is the Client ID, the product ID is the user name, and the authentication
information is the password.
6.2.1.1 Alibaba Cloud
1
、
Log in to the web page, in the mode setting menu, select the job role as Station, select the service mode as MQTT,
and save the settings.
2
、
In the parameter setting menu, select Alibaba Cloud.
3
、
Product key: In the Alibaba Cloud IoT platform console, create a product and device to obtain a product key. Such as:
A1Ve0iJW6z1
4
、
Device name: the device name entered when adding a device. Note: You can only enter numbers in English, and the
input length cannot exceed 10 bytes
5
、
Client ID: User-defined input. Note: Only digital English can be entered, and the input length cannot exceed 12 bytes
6
、
Device key: In the Alibaba Cloud IoT platform console, create a product and device to obtain the device key. Such as:
AHlmNjuaMCGJ1bFOjC4EZMZmHSUhzSEQ