www.mokosmart.com
4
Type
Parameter
Description
Broker setting
Host
The IP address or domain name of your server.
Port
Server port number.
Client id
MQTT client id, each device connected to the server
should have a unique client id.
Topics
Subscribe
The gateway uses it to subscribe messages from the APP.
You can use the default topic directly or modify it.
If the topic of “Settings for APP” page has been set, it
should be set the same as the APP published topic.
Publish
The gateway uses it to publish messages to the APP. You
can use the default topic directly or modify it.
If the topic of “Settings for APP” page has been set, it
should be set the same as the APP subscribed topic.
General
Clean session
Default: Enable, range: Enable/Disable
Qos
Quality of service. Default: 1, range: 0-2
Keep Alive
Default : 60, range: 10-120
User Credentials
Username
If access to your server doesn’t require a username and
password, it can be blank.
Password
SSL/TSL
SSL/TLS
Enable means SSL mode
Disable means TCP mode
Certificates
It supports three type of certificates:
CA signed server certification;
CA certificate file;
Self signed certificates
Device Id
Device Id
Each added device should have a unique device id.
Time setting
NTP URL
NTP server IP or domain name, it can be blank, then
device will use the default NTP server.
Timezone
Default: UTC+0, range: UTC-12 - UTC+12
2.2.2 Configure APP and Device connect to AWS iot
When configuring the gateway to connect to AWS iot, please enable the SSL/TSL option, then
select the certificate files locally from the mobile phone.