Difference between revisions of "IoTGateway/WiseSnail Simulator"

From ESS-WIKI
Jump to: navigation, search
Line 8: Line 8:
 
$ npm install keypress -- save
 
$ npm install keypress -- save
 
</pre>
 
</pre>
 
 
  
 
== Folder/File mapping introduction ==
 
== Folder/File mapping introduction ==
Line 15: Line 13:
 
*In '''WiseSnail_simulator''' directory, you can find '''wisesnail'''
 
*In '''WiseSnail_simulator''' directory, you can find '''wisesnail'''
 
*This '''Simulator''' read '''wisesnail''' directory to send WiseSnail packet to MQTT broker.
 
*This '''Simulator''' read '''wisesnail''' directory to send WiseSnail packet to MQTT broker.
*Below is folder/File mapping introduction
+
*Below is folder/file mapping introduction
 
+
[[File:20161011_nodejs_wisesnail_3.png]]
 
 
  
 
== How to test ==
 
== How to test ==
 +
* add device by adding folder and files.(or you can use default folder wisesnail)
 +
* modify MQTT broker address in mqtt_server.conf
 +
* Launch wisesnail, then check RMM server.
 +
<pre>
 +
$node wisesnail.js
 +
</pre>
 +
*Ctrl+C to disconnect device from RMM server

Revision as of 11:42, 11 October 2016

Download source code and install required modules

$ cd  ./WiseSnail_simulator
$ npm install mqtt --save
$ npm install keypress -- save

Folder/File mapping introduction

  • In WiseSnail_simulator directory, you can find wisesnail
  • This Simulator read wisesnail directory to send WiseSnail packet to MQTT broker.
  • Below is folder/file mapping introduction

20161011 nodejs wisesnail 3.png

How to test

  • add device by adding folder and files.(or you can use default folder wisesnail)
  • modify MQTT broker address in mqtt_server.conf
  • Launch wisesnail, then check RMM server.
$node wisesnail.js
  • Ctrl+C to disconnect device from RMM server