Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mqttBroker.authorizePublish = function (client, packet) {
- if (packet.topic === 'hello' && client.id === '01B4C') {
- let PACK = packet;
- setTimeout(function (packet) {
- mqttBroker.publish(PACK)
- }, 10000)
- }
- }
- netsh advfirewall firewall add rule name="IP Block" dir=in protocol=TCP interface=any action=block remoteip=172.30.10.120 localport=1883
- netsh advfirewall firewall delete rule name="IP Block" remoteip=172.30.10.120
Add Comment
Please, Sign In to add comment