Created
May 15, 2018 01:00
-
-
Save lewisdaly/c7937149d91d24fb4d5f0104820aa798 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const IOTA = require('iota.lib.js'); | |
const MAM = require('./lib/mam.client.js/lib/mam.client'); | |
var iota = new IOTA({ provider: `https://testnet140.tangle.works` }); | |
const five = require("johnny-five"); | |
const board = new five.Board(); | |
// Initialise MAM State - PUBLIC | |
var mamState = MAM.init(iota) | |
board.on("ready", () => { | |
console.log("mamState", mamState); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment