comparison mod_pubsub_mqtt/mod_pubsub_mqtt.lua @ 5831:801f64e6d4e9

mod_pubsub_mqtt: Add TLS port (default 8883) for MQTT connections
author Matthew Wild <mwild1@gmail.com>
date Tue, 30 Jan 2024 14:11:35 +0000
parents 85a7304cfea1
children 5afc8273c5ef
comparison
equal deleted inserted replaced
5830:b109773ce6fe 5831:801f64e6d4e9
161 module:log("debug", "MQTT client disconnected"); 161 module:log("debug", "MQTT client disconnected");
162 end 162 end
163 163
164 module:provides("net", { 164 module:provides("net", {
165 default_port = 1883; 165 default_port = 1883;
166 listener = mqtt_listener;
167 });
168
169 module:provides("net", {
170 name = "pubsub_mqtt_tls"
171 encryption = "ssl";
172 default_port = 8883;
166 listener = mqtt_listener; 173 listener = mqtt_listener;
167 }); 174 });
168 175
169 function module.add_host(module) 176 function module.add_host(module)
170 local pubsub_module = hosts[module.host].modules.pubsub 177 local pubsub_module = hosts[module.host].modules.pubsub