• No results found

Heltec Automation Docs

N/A
N/A
Protected

Academic year: 2021

Share "Heltec Automation Docs"

Copied!
23
0
0

Loading.... (view fulltext now)

Full text

(1)

Heltec Automation Docs

Release V0.0.1

(2)
(3)

Cloud Server

1 Cloud Server Quick Start 3

1.1 Summary . . . 3

1.2 Login/Register . . . 3

1.3 Select Frequency Band . . . 6

1.4 Create Gateway. . . 7

1.5 Create Application . . . 8

1.6 Create Device . . . 9

2 MQTT Subscribe 13 2.1 MQTT Subscribe Quick Start . . . 13

(4)
(5)

Heltec Automation Docs, Release V0.0.1

This is the documentation forHeltec Cloud Server.

(6)

Heltec Automation Docs, Release V0.0.1

(7)

CHAPTER

1

Cloud Server Quick Start

1.1 Summary

Cloud Server is a simple and fully functional LoRa cloud server. This page shows how to use this cloud server quickly.

Tip: Official website account, forum account and cloud server account can be logged in after activation.

1.2 Login/Register

Open the Browser, enter the URL http://cloud.heltec.orgyou will see the following interfaceclick Register/ Login

(8)

Heltec Automation Docs, Release V0.0.1

If you already have aheltec.orgaccount, you can enter the correct user name and password directly and clickLOG IN. If you don’t have an account, you need to reister first. Enter the user name, email address and password. Click

REGISTERto complete the registrationand you can log in successfully.

(9)

Heltec Automation Docs, Release V0.0.1

(10)

Heltec Automation Docs, Release V0.0.1

Tip: If you still cannot log in after successful registration, you can try to log out of the account and log in again.

1.3 Select Frequency Band

After entering the paltform, select the regional frequency band you need, such asAS923.

(11)

Heltec Automation Docs, Release V0.0.1

1.4 Create Gateway

ClickGateways->GatewaysCreateSelect theGENERALmenu and fill in the corresponding information. The following three options are required and the remaining options are optional. Finally, slide to the bottom of the page and clickCREATE GATEWAYto complete the gateway creation. Here is an example.

(12)

Heltec Automation Docs, Release V0.0.1

1.5 Create Application

ClickApps->AppsCreate fill in the corresponding information. The following two options are required and the remaining options are optional. ClickCREATE APPLICATIONto complete creation. Here is an example.

(13)

Heltec Automation Docs, Release V0.0.1

1.6 Create Device

ClickApps->AppsListYou will see the application we created before (theAppNamein the example)and click it.

SelectDEVICESmenuClickCREATEto create device.

(14)

Heltec Automation Docs, Release V0.0.1

SelectGENERALmenu fill in the corresponding informationThe following four options are required and the remaining options are optional. ClickCREATE DEVICE

Fill in the requiredKeyorLoRa Protocolinformation according to the selectedDevice-profileoption. For example, in this example, selectDevice-profileasOTAA/CLASS-A, as shown below

(15)

Heltec Automation Docs, Release V0.0.1

(16)

Heltec Automation Docs, Release V0.0.1

(17)

CHAPTER

2

MQTT Subscribe

This is the document ofHeltec Cloud Serverand MQTT message subscription.

2.1 MQTT Subscribe Quick Start

2.1.1 Summary

MQTT is a publish / subscribe protocol based on TCP / IP, which can connect a large number of remote sensors and control devices. It is a lightweight message subscription and publishing protocol.

Tip: The software version used in this example is MQTT.fx 1.7.1 and python 3.8.5

2.1.2 Use MQTT.fx Subscribe To Messages

Download MQTT.fx

MQTT Access To Cloud Server

Click the button shown below to configure the connection information.

(18)

Heltec Automation Docs, Release V0.0.1

Enter the information, whereBroker Addressis the server address corresponding toselected frequency band,the port number is1883selectUser Credentialsto enteraccount and passwordand clickOK.

ClickConnectto connect to the server. After successful connection, it will be displayed in green on the right.

(19)

Heltec Automation Docs, Release V0.0.1

Subscribe To Messages

ClickSubscribe->scan, Wait for thenodesthat access the Cloud Server to transmit data.

(20)

Heltec Automation Docs, Release V0.0.1

When anodeuploads data, information will be scanned in the scan column.

Select one as your subscription information. When there is a matching subscription information uploaded, it will be displayed in the data column. The following example subscribes toapplication/4/device/22... 09/rx

(21)

Heltec Automation Docs, Release V0.0.1

2.1.3 Subscribing To MQTT Using Python

After youDownload Pyhton, you need to enterpip install paho-mqtt python-etcdin the terminal to install the module.

Information Configuration

Change the following data to theaccount and passwordfor accessing theCloud Server.

Modify the following data to the content you want to subscribe to.

(22)

Heltec Automation Docs, Release V0.0.1

Modify host to the server address of the selected frequency band, and the port number is 1883 by default.

(23)

Heltec Automation Docs, Release V0.0.1

Run Python

References

Related documents

Add Wireless adapter for control by Toshiba Home AC Control application.. Wi-Fi Router Name Wi-Fi

shannon edmondson GRAPHIC DESIGN DIGITAL PORTFOLIO print > introduction > bio > experience > portfolio > illustrator > layout > interactive > >

• Return to the Network Configuration Menu on the user station and select the Transmitter IP Address option and press Enter. • Enter new IP address as specified on the

 Enter your Ship-To information (enter a ship-to address or select from a list of addresses provided. If the address is not listed, select the “Ship-To a Different Address“ link to

Enter your POP server’s host name or IP address, port (port 110 is the POP default), and POP account login credentials (this is the email address that RelayFax will check for

Start the PC Monitor Manager application installed on that server; enter the new account credentials and make sure to select “Use Dedicated Server” option and enter the

SMTP Server Enter the address or IP address of the SMTP (Simple Mail Trans- port Protocol) Server you use for outgoing E-mail. Enter the port number used to connect to the SMTP

Do not enter an IP address that is already in use in the upper Local Server IP Address field or a port number that is already in use in the TCP Port Number field; otherwise, the