Summary
In this chapter, we completed another important functionality that can be accomplished with ESP8266, real-time communication. You have learned how to stream real-time acceleration from an ADXL345 3 axes accelerometer to a backend Node.js server that will forward the received data to connected browsers. Data is drawn nicely in real time with smoothie.js
. As a continuation of this chapter, I encourage you to store the received data in a time-series database, use Grafana as a display tool for your values, and why not send them over MQTT to an MQTT broker. Adding the database and a nice tool for displaying the values can turn this solution into a commercial one. You can develop a platform for storing and showing real-time data for other companies or private users.