Special Input-Output: ESP8266 NodeMCU

C++

SFML

C

Arduino IDE

In this project research has been done on different types of special input for practical uses in applications and games. A gyroscope sensor is used to determine certain values. The NodeMCU ESP8266 microprocessor is used to receive these values and assign them to variables. It uses its built in Wi-Fi connectivity to send these values to a server.

Wayne used the Arduino IDE programming environment to receive, read and send values. Programming the NodeMCU has been done in the language ‘C’. He used the Simple and Fast Multimedia Library (SFML) to build an application that could receive the values from the server in a ‘JSON’-string and turn it into an object from which the values could be extracted. The application uses those values to move the player. It is written in the language ‘C++’.

Wayne contributed about 97% of all the work to this project. Under well received guidance was he able to accomplish everything in this project. An example of the process of serializing a ‘JSON’-document can be found below. As well as an example of receiving a ‘JSON’-string by ‘HTTP-request’ and deserializing the ‘JSON’-string to be used as values.