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
- Host: GitHub
- URL: https://github.com/bakito/rest2mqtt
- Owner: bakito
- Created: 2020-07-24T09:23:29.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-03-25T21:28:51.000Z (about 1 year ago)
- Last Synced: 2025-03-28T00:42:33.428Z (about 1 year ago)
- Topics: mqtt, rest-api
- Language: Go
- Homepage:
- Size: 202 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 .
```