Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By cgib
#61628 Hello, I currently have a basic setup as follows: A sensor is connected to an Arduino, the Arduino sends the data from the sensor to a local node.js server via serial over USB, and an html file (along with some js and css files) accesses this data from the server and graphs it in real time. The data from the sensor is a 256-element array that is sent to the server every x seconds.

I'd like to eliminate the USB cable from this setup and go wireless so I have ordered a NodeMCU v1.0 (ESP-12E) to replace the Arduino, and a battery to power it. I will also need to use the ESP as an access point that my laptop will connect to since the only available Wi-Fi networks where this will be used are enterprise networks which require more than just an SSID and password to connect.

So far I've gotten the AP example (https://github.com/esp8266/Arduino/blob ... sPoint.ino) to work. I have been scouring the internet for what to do next and have left confused so I'm looking for some guidance. I've read about solutions involving Thingspeak or similar services but I'd like to avoid those to use my existing interface. I have also read about maybe utilizing the SPIFFS to load my html/js/css files but I have no idea how to implement this. I'm also open to any other simple solution. I apologize if this is too broad to post here but I'm not sure where else I could post this.

What I want to do:
    Find the easiest way to send the data wirelessly from the ESP-12E to be displayed on my laptop (to a new server/database?)
    Adapt my existing Arduino code (to be loaded on the ESP) which reads and sends sensor data to send data to new wireless setup
    Find the easiest way to use my existing html/js/css files to display the data

If anyone is able to help with the above items or knows of any tutorials that would be helpful, that would be much appreciated.