We have reached the end of this tutorial but that is not where our productivity stops. It is possible to connect any input/output (module or sensor) to the Dasduino Connect board. It is also possible to program the Connect board in different ways to control the components connected to it. You probably already have some ideas for projects you want to make. Soldered team supports you for any “crazy” project you have imagined.
DASDUINO CONNECT AS A SERVER (A.K.A HOW TO CONNECT DEVICES TO DASDUINO CONNECT?)

INTRODUCTION
Your new Dasduino Connect arrived and it is time for you to start working? You do not know how to start and wonder what this board can do? This is the right tutorial for you!
Dasduino Connect board can work in 3 modes: as a client, as a server, or both (client and server). In the last tutorial we have described how Dasduino Connect board works as a client. Now we will explain how Dasduino Connect works as a server. By configuring Dasduino Connect board to work as a server, it allows us connecting smartphones, computers and other devices to the Dasduino Connect board. Along with that, it is possible to control the board itself using connected devices. Imagine all the posibilities which can be done, from turning the lights on/off, controlling heating or curtains using your smartphone to an automated house where it is possible to control everything using WiFi. Imagination has no limits.
EXAMPLE: ILLUMINATING LED DIODE USING WIFI
In the tutorial below, we will show how to configure Dasduino Connect boards to work as servers and on a simple example show how to control illuminating the LED diode using smartphone.
CONNECTING
To make the project itself, we need one LED diode and Dasduino Connect board. The connection method is shown in the picture below.
ARDUINO CODE
Before using this tutorial, it is necessary to configure Arduino program environment (Arduino IDE) to work with Dasduino Connect board in order for it to work properly (more on the link). We must also note that, in this tutorial, only the devices connected to the same (local) WiFi network can be connected to the Dasduino Connect board. This means that it is not possible to connect devices which are connected to a different WiFi network or data network to Dasduino Connect board. In continuation, we will explain new parts of the program code necessary for proper configuration and operation with WiFi network. First, we must create a “WiFiServer” object named “server” using which, we create a server on the Dasduino Connect board. The parameter within brackets is a number of the port on which it is possible to communicate to server.
Then we must establish a connection to the WiFi network. This can be done with WiFi.begin class within which we enter the ssid and the WiFi network password.
The program can continue working only when we have successfully connected to the defined WiFi network. We create a while loop within the Setup() function in which we check the connection status using WiFi.status() up until it returns the parameter „WL_CONNECTED“. For other parameters the WiFi.status() function can return, check this LINK.
THE RESULT
After you have successfully connected the LED diode to Dasduino Connect board and successfully switched the code to the board, click on the Serial Monitor in the Arduino IDE program.
CAUTION, you must change the baud rate setting to 115200 baud in the Serial Monitor. Otherwise, the resulting characters will be interpreted incorrectly and will not be understood.
When starting Dasduino Connect board, it will attempt to connect to a WiFi network you have specified in the code. In the Serial Monitor, you will see if Dasduino Connect is successfully connected or not. After the board is connected to a WiFi network, it will print the IP address which you need to enter into the web browser (on you smartphone, computer, laptop, etc.). After that, a web site, the same as the one in the image below, will appear. By clicking on one of the two buttons, the text within a web browser will change, and at the same time, change the LED diode’s status. That is it, you did it!