项目作者: cncoder

项目描述 :
IoT MQTT Web Server
高级语言: JavaScript
项目地址: git://github.com/cncoder/MQTT-IoT-WebServer.git
创建时间: 2017-11-07T08:00:09Z
项目社区:https://github.com/cncoder/MQTT-IoT-WebServer

开源协议:MIT License

下载


AWS IoT MQTT Web Server

The device project

You must deploy this project at first.(On AWS EC2)

https://github.com/cncoder/water-iot

Configure Your Device

  1. var thingShadows = AWSIoTData.thingShadow({
  2. keyPath: 'cert/private.pem',
  3. certPath: 'cert/certificate.pem',
  4. caPath: 'cert/rootca.pem',
  5. clientId: 'iot-flower-website',
  6. host: 'XXXX.iot.XXXX.amazonaws.com'
  7. });
  8. // change the thingName . You can ignore it.
  9. thingShadows.register( 'waterflower', {}, function() {
  10. })

Usage server.js examples

npm install

  1. // change 3000 port
  2. server.on('request', app);
  3. server.listen(3000, function () {
  4. console.log('Listening on http://localhost:3000');
  5. });

node server.js

Error handling best practices

FAQ

Changelog

We’re using the GitHub [releases][changelog] for changelog entries.

License

MIT