-
install package
npm i
-
create .env file as follow
HOST=${HOST} PORT=${PORT} PUBLISH_FREQUENCY=${SECONDS} TEST_TIME={TEST_TIME}
-
There are two ways as follow:
method A
Create
deviceList.json
file indevice
folder.Add your device array as follow.
[ { "name": "name", "token": "token" }, { "name": "name2", "token": "token2" } ] module.exports = deviceList;
method B
Use https://github.com/Krong1997/Set-device-to-TB to generate device list json file, and copy that to
device
folder. -
run test
node index.js
-
Notifications
You must be signed in to change notification settings - Fork 1
Krong1997/tb-mqtt-virtual-device
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
virtual device can post data to thingsboard
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published