phodal / lan Goto Github PK
View Code? Open in Web Editor NEWInternet of Things Server Layer with CoAP, WebSocket, MQTT, HTTP Protocol.
Home Page: http://lan.phodal.com
License: MIT License
Internet of Things Server Layer with CoAP, WebSocket, MQTT, HTTP Protocol.
Home Page: http://lan.phodal.com
License: MIT License
要不这样,我们自己定义 ,不是有 post, put 两个吗
post 覆盖,新建
put 追加,替换
这样就完美了
1)我发送一个 CON 包,服务器应答了3次,可用我的 ucoap 直接编译测试
2)post 上去的数据,并不是替换原来数据,而是无限附加到数据后面
你好, 我刚开始使用您的lan工程,在安装完毕运行的时候遇见这个问题:
ubuntu@ip-172-31-21-12:~/lan$ npm start
[email protected] start /home/ubuntu/lan
node server.js
/home/ubuntu/lan/server.js:16
if (_.include(app.config.get('modules'), 'websocket')) {
^
TypeError: Cannot call method 'get' of undefined
at start (/home/ubuntu/lan/server.js:16:28)
at Object. (/home/ubuntu/lan/server.js:37:3)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3
还有在
5.Start Cron
npm jobs/cron.js
出现:
ubuntu@ip-172-31-21-12:~/lan$ npm jobs/cron.js
Usage: npm
where is one of:
add-user, adduser, apihelp, author, bin, bugs, c, cache,
completion, config, ddp, dedupe, deprecate, docs, edit,
explore, faq, find, find-dupes, get, help, help-search,
home, i, info, init, install, isntall, issues, la, link,
list, ll, ln, login, ls, outdated, owner, pack, prefix,
prune, publish, r, rb, rebuild, remove, repo, restart, rm,
root, run-script, s, se, search, set, show, shrinkwrap,
star, stars, start, stop, submodule, tag, test, tst, un,
uninstall, unlink, unpublish, unstar, up, update, v,
version, view, whoami
npm -h quick help on
npm -l display full usage info
npm faq commonly asked questions
npm help search for help on
npm help npm involved overview
Specify configs in the ini-formatted file:
/home/ubuntu/.npmrc
or on the command line via: npm --key value
Config info can be viewed via: npm help config
[email protected] /usr/share/npm
在Google上面没有找到答案,到您这请教一下。再次感谢您做出这么好的工程
window下装那个加解密的包需要装什么vs2013 express,太大,我受不了了
建议用 openssl ,不然windows下部署太复杂
多次反复测试 send coap packet con
lan出现下面错误崩溃
Error: No reply in 247s
at null._onTimeout(/root/lan/node_modules................)
at Timer.listOntimeout as ontimeout
Centos 7.2.1511_X64
安装到 sequelize db:migrate时出错,
Loaded configuration file "config/config.json".
Using environment "development".
Using gulpfile /usr/lib/node_modules/sequelize-cli/lib/gulpfile.js
Starting 'db:migrate'...
[Error: The dialect sqlite is not supported. Supported dialects: mariadb, mssql, mysql, postgres, and sqlite. (Error: Please install sqlite3 package manually)]
很无语啊,sqlite3确实安装了
一直卡在这个位置,求大神帮忙解答下,非常感谢
[email protected] start /Users/sonny/lan
node server.js
/Users/sonny/lan/node_modules/sequelize/lib/sequelize.js:183
throw new Error('The dialect ' + this.getDialect() + ' is not supported. (
^
Error: The dialect sqlite is not supported. (Error: Please install sqlite3 package manually)
at new Sequelize (/Users/sonny/lan/node_modules/sequelize/lib/sequelize.js:183:11)
at Object. (/Users/sonny/lan/models/index.js:9:17)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (/Users/sonny/lan/server/index.js:4:14)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (/Users/sonny/lan/app.js:8:14)
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "start"
npm ERR! node v0.12.7
npm ERR! npm v2.14.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node server.js'.
npm ERR! This is most likely a problem with the lan package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node server.js
npm ERR! You can get their info via:
npm ERR! npm owner ls lan
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/sonny/lan/config/npm-debug.log
理由是:
1) 目前常规方案
2) 使用 coap-client , copper 都可以简单通信
3) BLOCK2 不是RFC7252 核心部分, 有可能跟其它实现不兼容
Can anybody prepare a shell script for deployment in coding.net webide or c9.io? Thanks.
hi ,
I am trying to modifying the websocket test scripts ,
var WebSocket = require('ws');
var ws = new WebSocket('ws://root:[email protected]:8898/web2');
ws.on('open', function open() {
ws.send('hello');
console.log('open');
});
ws.on('message', function (data) {
console.log(data);
process.exit(1);
ws.close();
});
but in the mongo client , I could not find the data was injected to the lan server ... can you please clarifying if the websocket is working ?
thanks
why CentOS 6.5, not 7.0. Because I hope I can build a Environment with the least cost. I choose the CentOS 6.5 which can work perfectly in a 512MB RAM computer.
我去phodal-archive/lan-jobs-cron下载了cron.js 和sqlite2mongodb.js,执行npm jobs/cron.js 依然不成功,不知道为什么
[root@cent63 lan]# npm jobs/cron.js
Usage: npm
where is one of:
access, add-user, adduser, apihelp, author, bin, bugs, c,
cache, completion, config, ddp, dedupe, deprecate, dist-tag,
dist-tags, docs, edit, explore, faq, find, find-dupes, get,
help, help-search, home, i, info, init, install, issues, la,
link, list, ll, ln, login, logout, ls, outdated, owner,
pack, prefix, prune, publish, r, rb, rebuild, remove, repo,
restart, rm, root, run-script, s, se, search, set, show,
shrinkwrap, star, stars, start, stop, t, tag, test, tst, un,
uninstall, unlink, unpublish, unstar, up, update, upgrade,
v, verison, version, view, whoami
npm -h quick help on
npm -l display full usage info
npm faq commonly asked questions
npm help search for help on
npm help npm involved overview
Specify configs in the ini-formatted file:
/root/.npmrc
or on the command line via: npm --key value
Config info can be viewed via: npm help config
[email protected] /root/node0124x64/lib/node_modules/npm
对不起,我是level 0 程序员,我想问下,这个包中间有mqtt broker吗?我翻了下没有看到。如果没有,你当时这个项目用的是什么mqtt broker?我想找个好点的开源broker运行在自己的服务器上,但是mosca太过陈旧并且有很多问题。谢谢你!
soga呢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.