Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

hologram-nova

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hologram-nova

A node module for interacting with the Hologram Nova via AT commands

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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);
});

FAQs

Package last updated on 30 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts