IoTGateway/WiseSnail Simulator
From ESS-WIKI
Download source code and install required modules
- Install nodejs: https://nodejs.org/en/download/package-manager/
- Checkout SVN source code: https://172.20.2.44/svn/essrisc/IoT/source/Projects/WiseSnail_simulator
- Enter the directroy WiseSnail_simulator and use npm tool to install mqtt and keypress 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
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