Help needed - MQTT to REST
I'm new to Solace and I'm still learning the ropes. I'm stuck and I need help.
What I want to achieve:
I want to control Shelly IoT devices from my own HTTP server, using SOLACE+MQTT.
To do that, I need to:
Translate MQTT to REST. When solace receives a MQTT message, it should send a REST call to another server.
- Translate REST to MQTT. When solace receives a REST call (POST with basic auth), it should send a MQTT message to subscribers.
What I managed to achieve until now:
- Spin up a solace cloud instance (free plan) and connect MQTT devices.
Test a REST call at
https://mr2j0vvhki6a39.messaging.solace.cloud:20427/T/rest/pubsuband it seem to work, but it does not work if I change
/T/rest/pubsubto anything else.
What I'm stuck on:
how to actually translate my rest call at
/T/rest/pubsubto a MQTT message sent to
- how to translate my MQTT message at
shellies/shelly1-8CAAB505BF8E/relay/0to a REST call to my http server?