0.1.0 • Published 4 years ago

lss-mqtt v0.1.0

Weekly downloads
15
License
MIT
Repository
github
Last release
4 years ago

lss-mqtt

Lightweight Security Scheme for MQTT

This project is proof of concept of work from

Lightweight Security Scheme for MQTT/MQTT-SN, 2019 Sixth International Conference on Internet of Things: Systems, Management and Security (IOTSMS)

Usage example (Typescript/ES6+)

import {LssMqtt} from 'lss-mqtt';

// Configuration
const lssMqttClient = new LssMqtt({ip: "<Your broker ip>", port: <your broker port>, key: "<your private key>"})

// Publishing
const myTopic = 'myTopic'
let counter = 0
setInterval(() => {
    lssMqttClient.api.publish(myTopic, `Counter: ${counter++}`);
}, 500);


// Subscribing
lssMqttClient.api.subscribe(myTopic)
lssMqttClient.callback = (topic, message) => {
    if (topic === myTopic) console.log(message);
}
0.1.0

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.3

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

1.0.0

4 years ago