Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • [Number] size
  • [DOMString] productName
  • [DOMString] oemID
  • [DOMString] auSize
  • [DOMString] productRev
  • [DOMString] mfrDate
  • [DOMString] serial
  • [DOMString] signalVoltage
  • [DOMString] uhsMode
  • [Number] specVersion
  • [DOMString] speedClass
  • [Number] mfrID
  • [DOMString] sataModel
  • [DOMString] sataVendor

...

Example

Code Block
languagejs
var storageClass = require("@brightsign/storageinfo");
var storage = new storageClass("/storage/usb1");


storage.getDeviceSize().then(
        function(data) {
            console.log(JSON.stringify(data));
        })
    .catch(
        function(data) {
            console.log(JSON.stringify(data));
        });

storage.getDeviceInfo().then(
        function(data) {
            console.log(JSON.stringify(data));
        })
    .catch(
        function(data) {
            console.log(JSON.stringify(data));
        });