mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
✨ Add MQTT & Trigger Node (#1705)
* ✨ MQTT-Node * ⚡ Small fix * ⚡ Error when the publish method faile * ⚡ Improvements * ⚡ Improvements * ⚡ Add Send Input Data parameter * ⚡ Minor improvements Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
@@ -3,15 +3,11 @@ import {
|
||||
NodePropertyTypes,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
|
||||
export class Mqtt implements ICredentialType {
|
||||
name = 'mqtt';
|
||||
displayName = 'MQTT';
|
||||
documentationUrl = 'mqtt';
|
||||
properties = [
|
||||
// The credentials to get from user and save encrypted.
|
||||
// Properties can be defined exactly in the same way
|
||||
// as node properties.
|
||||
{
|
||||
displayName: 'Protocol',
|
||||
name: 'protocol',
|
||||
@@ -55,5 +51,19 @@ export class Mqtt implements ICredentialType {
|
||||
},
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Clean Session',
|
||||
name: 'clean',
|
||||
type: 'boolean' as NodePropertyTypes,
|
||||
default: true,
|
||||
description: `Set to false to receive QoS 1 and 2 messages while offline.`,
|
||||
},
|
||||
{
|
||||
displayName: 'Client ID',
|
||||
name: 'clientId',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
default: '',
|
||||
description: 'Client ID. If left empty, one is autogenrated for you',
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user