Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/urholaukkarinen/mqtt-sse-bridge
MQTT to Server-Sent Events
https://github.com/urholaukkarinen/mqtt-sse-bridge
mqtt server-sent-events
Last synced: 7 days ago
JSON representation
MQTT to Server-Sent Events
- Host: GitHub
- URL: https://github.com/urholaukkarinen/mqtt-sse-bridge
- Owner: urholaukkarinen
- License: mit
- Created: 2022-09-18T15:02:03.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-01T15:26:53.000Z (about 1 year ago)
- Last Synced: 2024-10-10T20:11:36.335Z (28 days ago)
- Topics: mqtt, server-sent-events
- Language: Rust
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mqtt-sse-bridge
A simple application that subscribes to an MQTT broker and forwards any messages to an [SSE](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events) endpoint.
## Usage
Create a configuration file `Config.toml` and start with `cargo run`
```toml
# Example configuration[sse]
ip = "127.0.0.1"
port = 3030
endpoint = "events"[mqtt]
client_id = "mqtt-sse-bridge"
host = "test.mosquitto.org"
port = 1883
username = "wildcard"
password = ""
topic = "test/#"
```If started with `RUST_LOG=trace` environment variable set, all received MQTT messages are logged to standard output.