An open API service indexing awesome lists of open source software.

https://github.com/bakito/rest2mqtt

rest to MQTT bridge
https://github.com/bakito/rest2mqtt

mqtt rest-api

Last synced: about 1 year ago
JSON representation

rest to MQTT bridge

Awesome Lists containing this project

README

          

# rest to MQTT bridge

## Post Request

```json
{
"topic": "api/test",
"payload": "test",
"qos": 0,
"retained": false
}
```

```bash
curl --data '{"token":"", "topic":"api/test", "payload": "test","qos":0, "retained":false }' localhost:8080/v1/mqtt

curl -H "Authorization: Bearer " --data '{"topic":"api/test", "payload": "test","qos":0, "retained":false }' localhost:8080/v1/mqtt
```

## Build for rpi

```bash
podman build -t rest2mqtt --build-arg ARG_GOARCH=arm --build-arg ARG_GOARM=7 .
```