/hot

Command line test tool for Eclipse Hono

Primary LanguageGoEclipse Public License 2.0EPL-2.0

HoT – Hono Test GitHub release

This is a simple command line tool for testing Eclipse Hono™.

Start a test consumer

Fill in your connection information, and then execute the following command:

hot consume telemetry amqps://my.server:443 tenant

You can optionally use the following flags to configure the connection:

--insecure
Set to true to enable Insecure TLS connection
--tlsPath
Set to path of trusted store file
--clientUsername
Tenant Username
--clientPassword
Tenant Password

*NOTE: if neither --insecure nor --tlsPath are set the AMQP client TLS default is used

Publish an HTTP message

Fill in your connection information, and then execute the following command:

hot publish http telemety https://my.server tenant device auth password payload

The following flags are supported:

--qos
Set the "Quality of Service". Defaults to 0.
--ttd
Set the "time till disconnect", the amount of seconds the HTTP call will wait for a command to the device

Publish an MQTT message

Fill in your connection information, and then execute the following command:

hot publish mqtt telemety ssl://my.server tenant device auth password payload

The following flags are supported:

--qos
Set the "Quality of Service". Defaults to 0.

Building

Building requires Go 1.12.x. You can build the binary by executing:

GO111MODULE=on go build -o hot ./cmd