Skip to content

Run async OpenFaas functions and receive results back via MQTT

License

Notifications You must be signed in to change notification settings

alexking/mqtt-openfaas-bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MQTT OpenFaas Bridge

Run async OpenFaas functions and receive results back via MQTT.

To run a function, publish a message on the topic openfaas/invoke/function-name with a JSON payload.

{
    "input": "input for openfaas function",
    
    // Callback parameters will be passed through to the response
    "callbackParams": {
        "url-encoded": "additional-info"
    }
} 

You can then listen for results on the openfaas/results/function-name topic.

{
    "output": "output from the function",
    "params": {
        "params": "are passed through"
    }
}

You can configure the bridge by setting environmental variables manually or in a .env file. They're currently documented in the .env.example file.

About

Run async OpenFaas functions and receive results back via MQTT

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published