1.1.4 • Published 6 years ago

anniot-core v1.1.4

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

AnnIoT-NodeCore

AnnIoT device client

Configure account

var ann = require("anniot-core");
var iot = new ann.core({
    mail: "mailAdress",
    id: "deviceId"
})

Connect to server

iot.connect(true)

Listen for events

//Connected to server
iot.on("connect",function() {
    console.log("Connection estabilished");

    //Connection verified, events started to listening
    iot.on("verify",function() {
        console.log("Connection verified");       
    });

    //Client error handling
    iot.on("error",function(err) {
        console.log(err);
    });
});
1.1.4

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago