hologram-nova
v1.0.1
Published
A node module for interacting with the Hologram Nova via AT commands
Downloads
7
Readme
hologram-nova
Send single command
var HologramNova = require("hologram-nova");
var nova = new HologramNova({});
nova.sendCommand("AT+CGMI\r\n", 25, null, null, function(err, res){
console.log(res);
});
Send multiple commands
var HologramNova = require("../index.js");
var nova = new HologramNova({});
var commands = [
["AT+CIPSHUT\r\n", 65, "SHUT OK", null],
["AT+CGATT?\r\n", 10, "OK", null],
["AT+CIPMUX=1\r\n", 2, "OK", null],
["AT+CSTT=\"hologram\"\r\n", 2, "OK", null],
["AT+CIICR\r\n", 85, "OK", null],
["AT+CIFSR\r\n", 2, ".", null],
["AT+CIPSERVER=1,4010\r\n", 2, "SERVER OK", null]
]
nova.sendCommands( commands, function(err, res){
if(err){
throw(err)
}
console.log(res);
});