Contents 1. About This Manual..................1 2. APP Guide....................1 2.1 APP Download ....................1 2.2 Configure Server Information................1 2.2.1 Configure APP and Device connect to EMQTT............1 2.2.2 Configure APP and Device connect to AWS iot............4 2.3 Set the Gateway Scan BLE Device..............5 2.4 Set the Filter Condition..................
Demo APP for customers to quickly configure the gateway. This document will take the MOKO APP as an example to guide users to configure the gateway to connect to their own server and set the gateway to scan and obtain the required beacon data.
Page 4
Type Parameter Description Host The IP address or domain name of your server Server port number. Port Broker setting MQTT client id, each device connected to the server Client id should have a unique client id. The APP use it to subscribe message from the gateway, it Subscribe can be blank.
Page 5
3. Click the "Add Devices" button to select a gateway to connect, the connection password is Moko4321. After the APP is connected with the gateway's Bluetooth, the indicator will turn to solid green. 4. Fill in the configurations for the device, and configure an available WIFI SSID and password. The gateway will automatically connect to the WIFI and server, and the indicator will turn to blue flashing.
Type Parameter Description Host The IP address or domain name of your server. Server port number. Port Broker setting MQTT client id, each device connected to the server Client id should have a unique client id. The gateway uses it to subscribe messages from the APP. You can use the default topic directly or modify it.
Since the certificate format required by the iOS APP is different from that of the Android APP, this page of Android and iOS are slightly different (the left picture is the "MQTT settings for APP" page of Android APP, and the right picture is the "MQTT settings for APP" page of IOS APP). 2.3 Set the Gateway Scan BLE Device When the gateway is successfully connected to the server, it will automatically start scanning, and the scanned data will be displayed on the page.
Parameter Description Scan switch Default: enable, range: Enable/Disabled Default: 65535, range: 10-65535 (unit: second) 65535 is a special value, which means the gateway will be always scanning. Scan time Other value is a countdown time, when the time expires, the gateway will automatically stop scanning.
2.4.1 Beacon Type Filter The gateway can filter data by beacon type, and there are total 9 beacon types. With the default configuration, the gateway will scan and upload all types of beacon data. When the option is disabled, the gateway will not report this type of beacon data to your server. www.mokosmart.com...
2.4.2 Beacon Data Filter The gateway can also filter by beacon data, and it allows to set at most two filter conditions (condition A and condition B). The content of the two filter conditions is the same. When both of the filter conditions are ON, the relationship can be set to And or Or.
Page 11
Default is disabled, when enabling it, please add the “ ➕ ” icon to add filter items. It can add at most 5 items, and the relationship of each item is “And”. Data type: Data type of the Bluetooth raw data. ...
2.4.3 Duplicate Data Filter The gateway judges whether the scanned data is duplicated with the previous data according to the set rules. In a filtering period, the gateway will only report one piece of duplicate data to your server, which can effectively save server and network resources. Parameter Description Default: None, range: None/MAC/MAC+Data Type/MAC+Raw Data...
2.5 Set Device Parameters The gateway supports user to flexibly modify the device parameters according to their application. All parameters on this page can be modified. www.mokosmart.com...
2.5.1 LED Status Option The LED indicator function in different device status can be configured. Parameter Description Bluetooth advertising indicator Default is enable, when it is disabled, the LED will be OFF Bluetooth connected indicator Default is enable, when it is disabled, the LED will be OFF Server connecting indicator Default is enable, when it is disabled, the LED will be OFF Server connected indicator...
Parameter Description Default: 10, range: 0 or 10-86400 (unit: second) Value 0 means that the gateway will report the network Network status report period status only once when it successfully connects to the server, and will not report it later. 2.5.4 Connection Timeout Option The gateway will automatically reboot once when it connects to server exceeding the configured timeout.
During OTA process, LED will flash yellow, if OTA succeed, LED turns solid green, if failed, LED turns solid red. Note: The OTA server (47.104.172.169:8080) in the above picture is just available for your test. MOKO can also provide the update file, you can build your own OTA server to operate it. www.mokosmart.com...
2.7 Reboot Device The “Reboot Device” button is used to send a reboot command to the device. After that, the gateway will reboot once. 2.8 Reset Device The “Reset Device” button is used to send a reset command to the device. After that, the device will restore to factory setting, and the indicator will flash blue and green once.
Need help?
Do you have a question about the MK107 and is the answer not in the manual?
Questions and answers