{"id":21369027,"url":"https://github.com/stronnag/mqtttest","last_synced_at":"2026-04-29T06:38:02.959Z","repository":{"id":77329274,"uuid":"341978576","full_name":"stronnag/mqtttest","owner":"stronnag","description":"Couple of simple tools for testing MQTT, mainly for flightlog2kml/fl2mqtt and BulletGCSS","archived":false,"fork":false,"pushed_at":"2021-04-03T21:04:02.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T20:51:12.027Z","etag":null,"topics":["bulletgcss","fl2mqtt","mqtt"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stronnag.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-24T17:24:18.000Z","updated_at":"2023-11-16T15:19:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"caea16bd-06c9-46c6-b240-4f0b47b0ae33","html_url":"https://github.com/stronnag/mqtttest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stronnag%2Fmqtttest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stronnag%2Fmqtttest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stronnag%2Fmqtttest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stronnag%2Fmqtttest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stronnag","download_url":"https://codeload.github.com/stronnag/mqtttest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243842574,"owners_count":20356672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bulletgcss","fl2mqtt","mqtt"],"created_at":"2024-11-22T07:29:56.331Z","updated_at":"2026-04-29T06:37:57.940Z","avatar_url":"https://github.com/stronnag.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple MQTT tools\n\nTwo applications are provided primarily to test the usage of the MQTT protocol and specifically [BulletGCSS](https://github.com/danarrib/BulletGCSS) telemetry.\n\n* **mqttsub** Subscribe to a MQTT service, display received data, optionally generate time-stamped log\n* **mqttplayer** Replay a MQTT log (from `mqttsub` or BulletGCSS) to a MQTT server, preserving message timing.\n* **mqttcap** Persistent subscription capture. `mqttcap` can be left running in the background and can capture MQTT data to distinct files in `logdir` from the `broker` subscription.\n\n```\n$ mqttsub --help\nUsage of mqttsub -broker URI [options] ...\n  -broker string\n    \tMqtt URI (mqtt://[user[:pass]@]broker[:port]/topic[?cafile=file])\n  -log string\n    \tlog file for messages\n  -qos int\n    \tThe QoS for message subscription\n```\n\n```\n$ mqttplayer --help\nUsage of mqttplayer -broker URI [options] file\n  -broker string\n    \tMqtt URI (mqtt://[user[:pass]@]broker[:port]/topic[?cafile=file])\n  -fast\n    \tSpeed up x10\n  -qos int\n    \tThe QoS for message publication\n```\n\n```\n$ mqttcap --help\nUsage of mqttcap -broker URI [options] ...\n  -broker string\n    \tMqtt URI (mqtt://[user[:pass]@]broker[:port]/topic[?cafile=file])\n  -logdir string\n    \tlog directory for messages (default \"/tmp\")\n  -splittime int\n    \tsplit time for logs (default 300)\n```\n\nNote that the scheme (**mqtt**:// in the `--help` text) is interpreted as:\n\n* ws - Websocket (vice TCP socket), ensure the websocket port is also specificed\n* wss - Encrypted websocket, ensure the TLS websocket port is also specificed. TLS validation is performed using the system CA files.\n* mqtts - Secure (TLS) TCP connection. Ensure the TLS port is specified. TLS validation is performed using the system CA files.\n* mqtt (or anyother scheme) - TCP connection. If `?cafile=file` is specified, then that is used for TLS validation (and the TLS port should be specified).\n\n## Log file\n\nThe log file generated by `mqttsub` contains payload data, prefixed with a time_t-like timestamp with millsecond precision. The timestamp and payload are separated by a TAB character.\n\n```\n1611845402.129  cs:JRandomUAV,\n1611845402.130  flt:0,ont:60,ran:20,pan:-10,hea:263,ggc:200,alt:0,asl:33,gsp:0,bpv:16.80,cad:0,cud:0.11,rsi:100,\n```\n\nAs well as `mqttsub` log files, `mqttplayer` can also replay [BulletGCSS](https://github.com/danarrib/BulletGCSS) log files. These are characterised by a millisecond Unix epoch timestamp, a '|' separator followed by the data.\n\nif the log contains no timestamp and separator, the contents are replayed at 1 second interval.\n\n## Installation\n\nRequires a Go compiler and `make`.\n\n```\nmake\n```\nthen copy `mqttsub` and `mqttplayer` somewhere convenient.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstronnag%2Fmqtttest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstronnag%2Fmqtttest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstronnag%2Fmqtttest/lists"}