Steve-Mcl
153f87704b
fix datatype in node config not used. fixes #3215
2021-10-24 22:21:44 +01:00
Nick O'Leary
b8f1386ad0
Dynamic MQTT connections ( #3189 )
...
* add mqtt-control
- adds auto-connect option to broker
- add new node mqtt-control
- adds i18n messages
- adds documentation
* documentation tweaks
* built in documentation improvements
* fix tip layout causing oversized editor
* remove unused requires
* add missing `unsubscribe` dropdown option
- oddly forgotten - now added
* ensure clientid is updated dynamically
* [rewrite] move mqtt-control login into mqtt-in
* Remove dynamic label
* remove redundant mqtt-control code left overs
* Callback for brokerConn.connect (improve done())
- done is now called on connect callback
* fix race condition if connect/disconnect too fast
- node.connected and node.client.connected getting out of sync
* fix connection fail when switching protocol 3 ~ 5
- ensure protocolId is correct for protocolVersion
* change msg.subscribe prop to `msg.topic`
* unsub all topics if msg.topic is `true`
* delete temprary debugger statements
* Final rework of dynamic mqtt connections
Co-authored-by: Steve-Mcl <sdmclaughlin@gmail.com>
2021-10-14 12:05:06 +01:00
Nick O'Leary
8bbed2c831
Change node id generation to give fixed length values without '.'
2021-05-18 11:32:17 +01:00
Nick O'Leary
04a3c4bb22
Ensure mqtt-close message is published when closing mqtt nodes
...
The change in 1.3 where we ensure config nodes are closed last broke this behaviour. Previously, the config node would get closed triggering the close message. With the new 1.3 behaviour, the flow nodes are stopped and as soon as the last flow node deregisters itself, the broker node would disconnect without sending the close message.
The fix is to send the close message as part of the deregister flow as that will handle all cases properly
2021-04-14 22:28:25 +01:00
Steve-Mcl
080e2f2589
mqtt v5 fixes
...
- copy/paste issues with willMsg
- ensure helper func is ran for lwt messages
2021-02-25 19:58:59 +00:00
Nick O'Leary
255b8f2005
Update mqtt nodes for v5
2021-02-25 15:49:56 +00:00
Steve-Mcl
833ecfb1af
MQTT V5 - prep for 1.3.0 beta...
...
* MQTT IN node tidy up
* remove userProperties
* remove subscriptionIdentifier
* MQTT OUT node tidy up
* remove topicAlias
* remove payloadFormatIndicator
* remove subscriptionIdentifier
* MQTT BROKER node tidy up
* remove topicAliasMaximum
* remove maximumPacketSize
* remove receiveMaximum
* remove userProperties
2021-02-20 19:58:13 +00:00
Steve-Mcl
be52ec1390
mark more TODO areas (mostly debugging)
2020-12-07 12:48:33 +00:00
Steve-Mcl
00db43198d
design/TODO comments
2020-12-07 12:26:27 +00:00
Steve-Mcl
6bac207611
better handling of server properties
2020-12-07 12:25:51 +00:00
Steve-Mcl
27550f2d4b
automatically use resposeTopic if topic is empty
2020-12-07 09:43:52 +00:00
Steve-Mcl
195aeb5caf
mqttv5 progress
2020-10-14 23:30:03 +01:00
Steve-Mcl
38649de85f
debugging
2020-10-10 10:56:10 +01:00
Steve-Mcl
33bb86cbcf
mqtt5 1st draft
2020-10-08 20:24:35 +01:00
Dave Conway-Jones
b0c3c78899
MQTT out - Add warning if topic contains + or #
...
still sends msg as it causes connection to bounce which may be useful and dropping it would be a change in behaviour.
2020-03-18 15:47:03 +00:00
Nick O'Leary
608834eafb
Ensure IPv6 broker names are wrapped in brackets
...
Fixes #2462
2020-02-24 21:52:07 +00:00
Simon Hailes
175a871ee0
repalce for-in with 'normal' for loop in mqtt and http
2019-11-18 17:14:38 +00:00
Simon Hailes
0b3e9bf5e2
mqtt & httprequest: change proxy comparison from null to falsy.
...
mqtt - add no_proxy support.
2019-11-03 09:54:23 +00:00
Dave Conway-Jones
bb70e796a1
Change MQtt node default 3.1 compatibility mode to false
2019-09-27 14:22:37 +01:00
Nick O'Leary
69b781419f
Move io to network
2019-08-21 14:23:24 +01:00