Coding part of ESP8266

I want some help regarding the coding part of ESP8266.

I am using arduino Uno to count the number of objects and I want to send this value to WAMP server which will display this value on webpage.

The coding part related to counter is done and the server side coding part is done as well.

I just need some help in sending the counter value to WAMP server.Only this part of code is remaining.

So please someone help me with how to start with coding part related to ESP8266

There's a built in example for ESP8266 WebServer and Client , why don't you use that as a starting ?

But that is with Ethernet Shield and Webserver.It consist of all SPI connection

I want to know that with ESP8266

You need Ivan Grokhotkov's ESP8266 Arduino core. It contains the examples you need.

The Link you mentioned is to use ESP8266 alone.

But I want to use it with Arduino Uno.I just want to know how to send the sensor value to a WAMP server

with help of ESP8266

That doesn't matter. Program your ESP8266 with a sketch that reads the number from the serial port, and send it to the server (sending to the server is explained in one of the examples, you just have to implement the serial part). Then connect it to your Arduino via serial, and send the number from your Arduino.

I'm using the WiFiESP library(GitHub - bportaluri/WiFiEsp: Arduino WiFi library for ESP8266 modules) for the Uno+ESP8266 w/ AT firmware configuration. It has WebServer and WebClient examples and more. Be aware that it outputs debug information on Serial by default so you probably need to disable that if your ESP8266 is connected to Serial.

Which Arduino Board are they using in Sketch for it

I am getting error for Arduino Uno

NVT123:
Which Arduino Board are they using in Sketch for it

What sketch?

NVT123:
I am getting error for Arduino Uno

You need to actually post the error message. When there is an error you will see a button on the right side of the orange bar "Copy error message" click that button. Paste the error in a message here USING CODE TAGS(</> button on the toolbar). You need to provide us with information if you want help.

The sketch name is WebServer Led

Error document is attached

errorled.txt (4.96 KB)

It seems that you don't have WARN defined, this is probably some debug option. It should probably defined as

#define WARN Serial.println

But since you are probably using Serial for connection with the ESP, you have to disable it (don't ask me how, I've never used AT).

pert:
Be aware that it outputs debug information on Serial by default so you probably need to disable that if your ESP8266 is connected to Serial.

I would like to point out that the ESP8266 Arduino core is in most (if not all) aspects superior to the AT firmware. AT + Arduino is convoluted, firmware version sensitive, inefficient, extremely slow ...
Also, by doing all WiFi and HTTP related stuff on the ESP itself, you don't have to waste resources on it on the Arduino side, and your Arduino code will be many times simpler, since you don't have to focus on the networking stuff, just send the value over Serial, without having to worry about how your value will arrive at its destination, you can just trust the ESP to handle all that for you.

Actually Installing the library again resolved the problem

Now there is no error in compiling .

Anyway thanks for the help and amount of effort you have put in. :slight_smile: :slight_smile: