2016. 11. 10. 09:02ㆍ기타/아두이노
<MQTT>
mosquitto_sub -t "arduino" -h 192.168.0.23 -p 1883
mosquitto_pub -t "arduino" -m "Hello!!" -h 192.168.0.23
https://github.com/knolleary/pubsubclient
<MongoDB>
c:\mongodb
mongod -dbpath c:\mongodb\var
> db.scores.find();
> db.scores.find({i:3});
> db.scores.find({i:{$gt:3}});
> db.scores.find({i:{$gt:3,$lt:6}});
> db.scores.find({$or:[{i:{$lte:3}},{i:{$gte:7}}]});
> db.scores.find({i:{$in:[2,3,4]}});
> db.scores.find({i:{$nin:[2,3,4]}});
> db.scores.find({a:{$exists:true}});
> db.scores.find({}, {_id:0});
> db.users.update({name:'Johnny'},{$pull:{languages:'scalr'}});
> db.users.update({name:'Johnny'},{$push:{languages:'scalar'}});
> db.users.update({name:'Sue'},{$set:{age:20}});
> db.users.update({name:'Sue'},{$unset:{age:20}});
> db.users.update({name:'Hong'},{name:'Park',languages:['english']});
> db.users.remove({name:'Sue'});
> db.users.remove({});
> db.users.drop();