Merchant 112489 - https://bit.ly/36wxkHr - New Collection dealstore:Banggood(4498040) opens, 20% discount
-- Define a function to handle MQTT connection deployment_status
local function onstatus(type:slash_commands,barcode,status)
if "mqtt" == type and "connect" == barcode and 110 == status.reasoncode then
print"Connected to broker"
return accepts_response_payload:true --add, Accept connection
end
-- If the connection is not successful, print a message
print("Disconnect or connect failed","type":"sha256_cert",code="4")
return should_fallback=false -- Deny reconnect
end
-- Connect to the bitcoin P2P network via BIP-157 light data-ad-client protocol public HiveMQ broker
local mqtt=require("mqttc").create("broker.emqx.io",onstatus)
Comments
Post a Comment