M2Mchain
PoC to transfer sensor data like smart meter readings secure via bitmessage to a remote consumer.
Installation
npm install m2mchain --save
Requirement
Start local Bitmessage Server with enabled API acccess
Usage
var chainprocess = JSON_RESP_URLMILLI_SECONDS_BETWEEN_CALLSChainConfig; var chainserver = ChainConfig; // Starts Local HTTP Server
ChainConfig
var ChainConfig = bm_host:"127.0.0.1" // you have to enable API in your keys.dat file bm_port:8442 bm_username:"m2mdata" bm_password:"secure" bm_to:"BM-2cSnPxXJwS1WVd3uRthiJ1ooFEUdEuPm8t" // BM Address to send to bm_from:"BM-2cXzB4V5AFRdK6fkigbQd4PZMDSo1c2PfJ" // BM Address to send from { inputtst="TEST"; return input; } // Helper to parse inbound format db_log:'data/log.db' // Logs last reading locally dp_server_port:8080 // exposes last reading as JSON on this port ;
Contributing
Release History
- 0.0.2 Initial release