Chat freely about anything...

User avatar
By Rohit Kumar
#57688 Hi!

I am a new entrant to the wonderful world of ESP8266 and IoT. I have an ESP8266 ESP-01 Device.
I would like to transmit serial data to Arduino wirelesly using ESP8266 Web server to enter data, which then passes through its serial port (UART0 Tx) to Arduino Pin0 (UART Rx)

I am trying to give some complicated set of commands.

Till now I have used arest.io in order to control simple on/off LED operation.
But in order to send command strings like <Fwd 10, Right 45, Fwd 10> I feel there has to be through
web server->serial port->Arduino

Kindly enlighten me on the matter.

Thanks

Rohit
User avatar
By Rohit Kumar
#58050 Thanks a lot for the pointer. I have installed esp-link 2.2.3

However, after entering mqtt broker info in the REST/MQTT page, esp-link is unable to connect to connect to the broker.

However, if I want to change broker info, the REST/MQTT page has become totally unresponsive:

ESP-LINK.jpg
unresponsive REST/MQTT Page


Due to this, I am no longer able to change the mqtt broker or carry out further mqtt tests.

Following log is observed on the Debug/Log page of esp-link:
338866> MQTT: Connect to broker.hivemq.com:1883 0x3fff9888 (client=0x3fff5574)
339534> MQTT: ip 52.29.27.181
339534> MQTT ERROR: Failed to connect
340237> MQTT: Connect to broker.hivemq.com:1883 0x3fff98d8 (client=0x3fff5574)
340346> MQTT: ip 52.29.193.216
340346> MQTT ERROR: Failed to connect
342773> MQTT: Connect to broker.hivemq.com:1883 0x3fff9928 (client=0x3fff5574)
343536> MQTT: ip 52.29.27.181
343536> MQTT ERROR: Failed to connect
354382> MQTT: Connect to broker.hivemq.com:1883 0x3fff9978 (client=0x3fff5574)
354832> MQTT: Disconnect CB, freeing espconn 0x3fff7b18
354832> MQTT: Disconnected from broker.hivemq.com:1883
354838> MQTT: Disconnect CB, freeing espconn 0x3fff7068
354839> MQTT: Disconnected from broker.hivemq.com:1883
355168> HTTP GET /log/text: 200, 37ms, h=11056
355287> MQTT: Connect to broker.hivemq.com:1883 0x3fff77c0 (client=0x3fff5574)
355534> MQTT: ip 52.29.27.181
355534> MQTT: connecting...
355724> MQTT: Disconnect CB, freeing espconn 0x3fff6c48
355724> MQTT: Disconnected from broker.hivemq.com:1883
355730> MQTT: TCP connected to broker.hivemq.com:1883
355730> MQTT: Send type=TYPE_CONNECT id=0000 len=40

The mqtt activity is keeping the esp-link occupied

I have tried flashing at firmware to clear the flash, and then again flashed esp-link , so that the broker information goes away, but it persists.

Is there any alternate way to completely erase esp8266?