ESP8266 as a data server..

I am right now collecting analog data with a UNO , then sending it via Serial to a Lantronix Device server (Read Here)and that in turns converts the Serial data to TCP/IP packets and beams out. Remotely read by a LabVIEW plotting program running in my laptop.

Now this setup works fine but the cost is pretty high overall. I was wondering if a ESP8266 in Soft AP mode can do the same thing directly if I can interface it with a SPI ADC module ? It just has to read the analog value and transmit as TCP /IP packets.

Any help to do this will be appreciated !!

The code i use right now is as below :

#include "RunningAverage.h"

unsigned long transmittMs = millis();
unsigned long transmittInterval = 100;

unsigned long anaReadMs = millis();
unsigned long anaReadInterval = 10;

bool ledState           = 0;
byte transmittLED       = 13;
byte countLED           = 0;
int RA_SampleSize       = 5;
const int Sens00        = 0;                 // Analog pins to use
const int Sens03        = 3;
unsigned int Val_00     = 0;                 // Variable to hold raw AI data
unsigned int Val_03     = 0;
unsigned int rawCountCh0 = 0;
unsigned int rawCountCh3 = 0;
unsigned long BaudRate = 115200;

boolean tunnelFlag = 0;                      // Controls post to netwrok...
char receivedChar;
boolean newData = false;

RunningAverage RA_Ch00(RA_SampleSize);
RunningAverage RA_Ch03(RA_SampleSize);     // Ground the Ch02 so that inter channel interference is avoided...


void setup() {
  Serial.begin (BaudRate);
  pinMode( transmittLED, OUTPUT);
  tunnelFlag = 1;                          // Start sending data over network


void loop() {


  if ( (millis() - anaReadMs) > anaReadInterval ) {
    anaReadMs = millis();
    Val_00 = analogRead(Sens00);
    Val_03 = analogRead(Sens03);
    rawCountCh0 = RA_Ch00.getAverage();
    rawCountCh3 = RA_Ch03.getAverage();

  if ( (millis() - transmittMs) > transmittInterval ) {
    transmittMs = millis();
    Serial.print(countLED * 3 );                        // Generate a saw tooth for studying the packet integrity

  if (countLED > 10 ) {
    countLED = 0;
    ledState = !ledState;
    digitalWrite (transmittLED , ledState);              // Flash the LED to show all is well...


The ESP has only one Analog in for 1Volt. So you might consider a i2c ADC or something similar.

By the way: a NodeMCU or a Wemos D1 will make everthing a little be more beginner friendly than a plain ESP8266.

Sure. I had already mentioned that in my post. I am keen to get support on the creation of the packets for the TCP/IP session and send over WiFi.