Setting up a Blynk server on Raspberry Pi

The following steps will show you how to set up a Blynk server on a Raspberry Pi. The Blynk server supports all versions of Raspberry Pi boards. However, Raspberry Pi 3 provides better performance for running dedicated servers than previous boards.

For testing purposes, you can use the same Raspberry Pi board to run both the server and the firmware for the hardware:

  1. Using PuTTY, log in to your Raspberry Pi through SSH.
  2. Install Java 8 using the following command:
pi@raspberrypi:~ $sudo apt-get install oracle-java8-jdk
  1. Verify the Java version using the following command:
pi@raspberrypi:~ $ java -version
  1. You will get the following output:
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)
  1. Download the Blynk server JAR file using the following command:
pi@raspberrypi:~ $wget "https://github.com/blynkkk/blynk-server/releases/download/v0.33.4/server-0.33.4-java8.jar"
  1. A file named server-0.33.4-java8.jar for the Blynk server will be downloaded to the Raspberry Pi.
  2. Run the server (JAR file) on default hardware port 8080 and default application port 9443 (SSL port):
pi@raspberrypi:~ $java -jar server-0.33.4-java8.jar -dataFolder /home/pi/Blynk
  1. You will get following output for the first time:
Blynk Server 0.34.0-SNAPSHOT successfully started.
All server output is stored in folder '/home/pi/logs' file.
Your Admin login email is [email protected]
Your Admin password is admin
  1. The login email and password for the admin is used to log in to the Blynk app builder running on your smartphone.
  2. For subsequent restarts, you will get the following output:
Blynk Server 0.34.0-SNAPSHOT successfully started.
All server output is stored in folder '/home/pi/logs' file.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.139.50