https://github.com/lales12/serverless-iot-mqtt
Mqtt plugin for serverless offline application
https://github.com/lales12/serverless-iot-mqtt
serverless
Last synced: about 1 year ago
JSON representation
Mqtt plugin for serverless offline application
- Host: GitHub
- URL: https://github.com/lales12/serverless-iot-mqtt
- Owner: lales12
- Created: 2022-12-27T10:01:41.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-30T11:39:43.000Z (over 3 years ago)
- Last Synced: 2025-01-09T05:17:45.351Z (about 1 year ago)
- Topics: serverless
- Language: TypeScript
- Homepage:
- Size: 42 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Serverless offline Mqtt and iot plugin
This [Serverless](https://github.com/serverless/serverless) plugin allow develop in local machines and connect to MQTT service.
This plugin require a MQTT service running in order to trigger the defined events
Features
- Handle functions with iot events.
- Compatible with MQTT service.
## Example
```yml
provider:
name: aws
runtime: nodejs16.x
region: us-east-1
functions:
event_handler:
handler: ${HANDLER_PATH}
events:
- iot:
name: EVENT_NAME
description: EVENT_DESCRIPTION
sql: "SELECT * FROM 'EVENT_TOPIC'"
sqlVersion: beta
custom:
serverless-iot:
mqttUrl: 'mqtt://localhost:1883'
debug: true
```