Bevywise IoT simulator is a comprehensive simulating tool to develop, test & demo real time IoT applications and IoT devices in a quick and easy way. It is a simple & powerful tool with all the flexibility to develop & test MQTT Broker / application without real devices/networks. In that case, Bevywise IoT simulator supports testing your IoT application built on any MQTT Broker available. This article provides you an ultimate step by step guide on integrating HiveMQ & EMQX with Bevywise IoT Simulator.
HiveMQ testing with IoT Simulator
Before we start the integration procedure to test MQTT Broker, let us complete the installation process of HiveMQ & Bevywise IoT Simulator.
First you need to check the pre-installation requirements of HiveMQ
If all the requirements are satisfied, download Hive MQ package from the below mentioned link.
You can use the terminal to unzip & run the package
Now go to bin foder & set your permissions
chmod 755 run.sh
Use the below command to run HiveMQ (Root user)
Use your file browser to extract the ZIP archive to the directory of your choice.
To start the batch file, open the bin folder and double-click run.bat.
Once the installation is done, you can move to the browser at http://localhost:8080
Enter the login details & get started with HiveMQ
- User – admin
- Password – hivemq
Bevywise IoT Simulator Installation
The simple & easy installation process & you don’t need to spend much time setting up the simulating environment.
Let us start by downloading the package. Bevywise IoT Simulator is free to download & you can use the FREE version without restrictions for 30 days.
Unzip the downloaded “Bevywise_IoTSimulator__Linux.zip.zip”
Open the terminal & move to the bin folder
cd < Installation path >/Bevywise/Iotsimulator/bin
Now run the simulator with the below command
Double click the downloaded “Bevywise_IoTSimulator_Win_64.exe” file
Provide the installation path in the installation window & start installation.
Open command prompt and go to the “bin” folder
< Installation path>/Bevywise/Iotsimulator/bin
Now start the simulator with runsimulator.bat command
Connecting IoT Simulator with HiveMQ
You can either connect with TLS/SSL enabled or without TLS/SSL
MQTT Broker Configuration
Enable/disable the TLS/SSL in MQTT Broker as per your need and check port number.
By default simulator runs in port 1883 if TLS is disabled & 8883 if TLS is disabled
Start the Simulator in your environment and it will lead you to an IoT simulator user interface. Next, create a new network and the Simulator Setting windows will appear.
In the Simulator settings, choose as follows:
- Manager Application – Others
- Broker IP Address – IP address of PC or server where you run the MQTT Broker i.e (localhost)
- TLS/SSL – Enable (if enabled)
- Port – By default 8883(if TLS enabled), if your MQTT broker runs in a different port, specify here. Use 1883, if TLS is disabled
- Root certificate – Upload the root.crt file which you have created or downloaded before[ Don’t forget to click upload]
- Once you’re done, save the configuration.
- Next, create devices virtually with simulator and events with published messages.
- There is no authentication option in HiveMQ side to connect devices. So you can directly connect your created devices without enabling authentication in simulator side.
- Start the network by clicking the start button and if the connection is successful, then you can see the published message in the simulator Network log or device log.
If your integration is successful, you can view the list of connected devices in HiveMQ UI. Now, get started with your application testing by simulating your real devices with IoT simulator.